static-site-boilerplate is a starting point for creating modern static websites with the following features:
- Module bundling with webpack
- Modern ES2015 javascript with babel
- Even more modern ES2017 features like decorators, object rest spread operator and class properties.
- CSS with Sass
- Worlds best JS linting with eslint, using Airbnb's excellent style guide
Clone this repository and run npm install
(or highly recommended: yarn
).
-
npm start
Starts a development server running onlocalhost:8080
. Automatically watches for changes, recompiles and autoreloads π -
npm build
Builds the entire project, optimizing it along the way. Built files are located in thedist
directory. -
npm run build:dev
Builds the project, but no optimizations are done. -
npm run lint
Lints all files insrc
, because linting is awesome and helps you produce better code π