π Getting Started
Welcome to mostir β a lightweight CLI to streamline esbuild workflows.
π¦ Installationβ
Install with your preferred package manager:
npm install -D mostir
# or
yarn add -D mostir
# or
pnpm add -D mostir
π Quick Startβ
Initialize a config file:
mostir init
- This will generate a
mostir.config.mjsin your project root. - The
buildsection inmostir.config.mjsfollows esbuild options. - β οΈ In the
init-generatedmostir.config.mjs, if you want to build withbundle: false, you should remove theexternaloption.
π Review and adjust the settings before running build, or it may fail.
Run your first build:
mostir build
π§Ή Useful Commandsβ
mostir build --syncβ Syncdist dirwithsource dirfirst ,then run esbuild with your configmostir syncβ Syncdist dirwithsource dir(remove orphan files)mostir cleanβ Clear all files insidedist dir
For more details and available options, see the Commands section.