npm i
- Copy
src/*.htmltodistfolder. - Copy
src/assets/*/todist/assets/*/folder. - Compile SASS
src/styles/app.scsstodist/stylesfolder. - Bundle and transpile JS
src/scripts/app.jstodist/scriptsfolder. - 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 thedistfolder.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