a divine creative impulse or inspiration.
- use ejs or other template language
- main environment: webpack.
dependencies: webpack, webpack-cli, webpack-dev-server.
exe command: npm install --save-dev ${dependencies}
need change files: package.json & webpack.config.js (new).
subOptions:
optional loaders:
- style support: style-loader, css-loader
exe command:npm install --save-dev ${dependencies}
need change files: webpack.config.js - babel support: babel-loader
exe command:
npm install --save-dev ${dependencies}
need change files: webpack.config.js .babelrc (new)
optional plugins:
- html & build support: html-webpack-plugin, clean-webpack-plugin.
at least According to the webpack options generate the webpack.config.js
- option: eslint & prettier
devDependencies: eslint, prettier, babel-eslint, eslint-config-prettier, eslint-plugin-prettier.
- option: commitizen to control git commit message.
devDependencies: cz-conventional-changelog, husky.
exe command npx commitizen init cz-conventional-changelog --save-dev --save-exact
need change files: package.json