This is an HTML5 application, built with Brunch. This recipe uses Elm for components, Jade for templating, and Stylus for styling.
- Install (if you don't have them):
- Run:
brunch watch --server
— watches the project with continuous rebuild. This will also launch HTTP server with pushState.brunch build --production
— builds minified project for production
- Learn:
public/
dir is fully auto-generated and served by HTTP server. Write your code in theapp/
dir.- Place Elm code in the
app/elm
dir. - Place Jade templates in the
app/templates
dir. - Place Styles templates in the
app/styl
dir. - Place custom javascript in the
app/javascripts
dir.
- Place Elm code in the
- Place 3rd party javascript libraries in the
vendor
dir. - Place static files you want to be copied from
app/assets/
topublic/
. - Brunch site, Getting started guide