Default Brunch
-
Everything is /app is pre-built (.coffee, .sass etc.)
-
Html lives in /app/assets
-
brunch build (brunch watch) => sends files from app -> public
public isn't in repo (like build folder)
Execute url http://localhost:3333/ you're hitting public folder
GOTCHA - DONT EDIT FILES IN PUBLIC
-
Generators are like scaffolds
-
Test folder is where your test scripts go.
/test -> /public/test
-
To build in release mode (excluding tests)
"brunch b --config config-release.coffee"
-
Vendor is 3rd party css & jas (e.g. bootstrap, backbone, jquery)
-
Brunch takes all scripts (js) in vendor/scripts and combines it into
one single js files /public/javascripts/vendor.js
-
Brunch takes all scripts (js) everywhere else and combines it into
one single js files /public/javascripts/app.js
-
Brunch takes all css everywhere else and combines it into
one single js files /public/stylessheets/app.css
Baddass Backbone Brunch
/app directory structure
- Everything inside of /assets is literally a photo-copy job into
/public
-
demos is where all the code for each single page app (SPA) lives
-
libs is where the badass backbone base classes live
-
stubs contain files with json data