Boilerplate for using ES6/ES7 syntax (via Babel), modules (via Browserify), and Sass (via node-sass). Also provides watchers for ./js
, ./scss
, and ./static
folders, and a gh-deploy
script for serving up your projects to the world via GitHub Pages.
It looks like this: http://ericsoco.github.io/es7-sass-boilerplate/
npm i
npm start
Open your browser to http://localhost:3000/ to see index.html.
You can just start tinkering directly in one of the the examples if you like. Or, you can start fresh:
- Make a new
.html
file based on one of the examples. Edit thedata-module
attribute to something yourmain.js
can route. - Add or modify one of the links in index.html to point at it.
- Make a new
.js
file based on one of the examples. - Edit
main.js
to route to it. - Make a new Sass partial based on one of the examples.
- Import it in
main.scss
. - Change the wrapper class in your
.js
file to match (e.g. here).
s'about it.