ideal-cli
Frontend cli
一、Features
- Support build(Webpack)
- development
- production
- library
- code format
- pre hooks check
- standard version
- dll
- build analysis
- browser compatibility
- commit lint
Coming soon
- Unit test(Jest)
二、Usages
npm i ideal-cli@latest -D -E # First init configuration npx ideal-cli init -h
三、Configurations
1. package.json
2. browserslist
Add configuration to package.json
3. babelrc
If project uses react, you should config local .babelrc
:
4. lint
npx eslint --init
5. version
major.minor.patch
npm run release -- --first-releasenpm run release -- --release-as
6. Dll
Config package.json
Config your index.html.
<!-- contents --> <!-- Inject DLL -->
Config your project.config.js.
dllVendors: 'react' 'react-dom'
四、Optimization
- code splitting
- lazy loading
- tree shaking
- Shimming
- Cache
- Concurrency
五、Bundle analysis
npm run analyze
Analysis Website