This project is a boilerplate for frontend development.
Provides tools for developing and shipping a static site.
- Compile and transpile ES6 JS code via babel.
- Testing suite via jest with code coverage.
- Compiles SASS files into a CSS file.
- Development and production scripts.
- Prettify code.
- Linting code.
To run these scripts, you need to:
npm install
: to install all the required dependencies.npm run [script_name]
: where script name is one of:build
: build all assets. Will generate anindex.html
file inside thedist
folder, with all assets (CSS & JS) already minified. This is the script you want to use when deploying/building.dev
: will startwebpack-dev-server
with livereload and sourcemaps ready to be used while developing. This is the script you want to use when developing.lint
: JS linter tool usingeslint
.prettier
: prettify all your code usingprettier
.test
: run all test files (files containing*.spec.js
extension) and generate a coverage report undercoverage
folder. It's done viajest
.test:watch
: same as before but watching for changes.