This is a modern JS skeleton for Brunch.
Download this repo.
- Install (if you don't have them):
- Design:
- Cut out your mockup in files and put it in
artworks
dir. npm run prep
— prepares all components needed insrc/components/
and generatesrc/main.js
with all components js.- if you delete the js file of a component, re-run
npm run prep
to regenerate the correctsrc/main.js
file.
- Cut out your mockup in files and put it in
- Run:
npm start
— watches the project with continuous rebuild. This will also launch HTTP server with pushState.npm run build
— builds minified project for production
- Learn:
www/src/
dir is fully auto-generated and served by HTTP server. Write your code insrc/
dir.- Place static files you want to be copied from
src/assets/
towww/src/assets/
. - Brunch site, Getting started guide