ACAkara Cheninblog.akr.moe路Jan 13, 2023 路 2 min readpnpm monorepo quick startIntroduction When you open this article, I acquiesce that you know about monorepo, so I don't want to talk nonsense, let's start straight away. Create a workspace First, you need to initialize your project and run pnpm init in your project root. Then...00
ACAkara Cheninblog.akr.moe路Sep 11, 2022 路 4 min readHow to make a modern npm packageI've been working on an npm package for a while now, in an age of ESM and CJS going hand in hand, it is not enough that you add just one of these supports to your npm package. Now, I will show you my work today, how to initialize an npm package elega...00
ACAkara Cheninblog.akr.moe路Aug 10, 2022 路 2 min readVue 3 i18n NotesRecently, I've been working on a front-end project with i18n support, and I'd like to note the steps here. Step 1: Install dependency pnpm add vue-i18n@9 As of now, we have no other choice. Step 2: Create Language Packs At first, we need to define w...00
ACAkara Cheninblog.akr.moe路Aug 8, 2022 路 2 min readSet up Windows for developmentRecently I wiped my Windows computer because of my cluttered config, and I'm here to tell you how to set up an elegant environment. configure shell At first, you need a terminal application, I choose Windows Terminal. Windows Terminal becomes the def...00
ACAkara Cheninblog.akr.moe路Aug 6, 2022 路 2 min readUse Pure ESM package in TypeScript projectWhen you write a Node.js application using TypeScript, the default configuraion will treat the ESM package as CommonJS package, just like this: // before compile import execa from 'execa' execa("openssl") // after compile var execa_1 = require("exec...00