npm i
- Copy
src/*.htmltodistfolder. - Copy
src/assets/*/todist/assets/*/folder. - Compile SASS
src/styles/app.scsstodist/stylesfolder (oneapp.cssuncompressed version and oneapp.min.cssminified version). - Concatenate all JS files from
src/scripts/todist/scripts/app.jsfolder. - Create sources maps.
- Run a dev web server with browsersync.
- Run linter on SCSS and JS files.
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