🚀 Build webpack, babel, eslint, less, commitlint, typescript, vue, react, lerna and other development environments with one click
npm i -g ebuild-cli
Run the command in the directory where you want to create the project
ebuild init <project name>
cd <project name>
pnpm install
The following templates are available for selection during installation
- rollup: rollup npm project (ts + rollup + esbuild + github workflow)
- lerna: lerna monorepo project (typescript + lerna + rollup)
- vite: Vite project (vite + vue3 + vue-router + pinia + ts)
- webpack: Contains webpack, babel, eslint, commitlint
- webpack css mode: default mode + css and less support
- webpack typescript: default mode + ts support
- sener: the best practice of sener-based http service
- Npm package customization version 2: typescript + webpack, automatically generate toc and npm directories
- Customized version of npm package: typescript + less + jest + webpack
- vue: vue2.x + vue-router + vuex
- vue3: vue3 + typescript + vue-router4 + vuex4
- react: react17 + typescript + redux + sass
- node-es6: node + express + es6 + webpac
- Raw mode: not recommended
ebuild init user/repo
cd repo
like:
ebuild init theajack/ebuild-cli
Start a development server
ebuild run
Count current project lines of code
ebuild count
For usage details and configuration files, please refer to count-code-line
Generate some tools in the current project
npm i ebuild-cli
const {init, run, count, gen} = require('ebuild-cli');
The init method only supports github repositories, and the second parameter is optional
init('theajack/ebuild-cli');
init('theajack/ebuild-cli', {
name: '',
description: '',
author: '',
});
run();
count();
count({
//...
});
For usage details and configuration files, please refer to count-code-line
gen();
For example, C:\xxx\Roaming\npm\ebuild.ps1 is encountered on windos, because running scripts is prohibited on this system.
Please CMD execute set-ExecutionPolicy RemoteSigned