npm i
- Copy
src/*.html
todist
folder. - Copy
src/assets/*/
todist/assets/*/
folder. - Compile SASS
src/styles/app.scss
todist/styles
folder. - Bundle and transpile JS
src/scripts/app.js
todist/scripts
folder. - Create sources maps.
- Run a dev web server with browsersync.
- Run linter on SCSS and JS files.
- Optimize assets on production mode (build).
npm start
: build on files changes, launch a dev server with browsersync.npm run build
: clean, lint and build the project.npm run clean
: clean thedist
folder.npm run lint
: run a linter on scss and js files.
Use "JavaScript Standard Style" : https://standardjs.com/rules.html
Only customization: require a semicolon at the end of each line.
Use "stylelint-config-standard" : https://github.com/stylelint/stylelint-config-standard