Clone this git repo https://github.com/kgcreative/brunch-with-cocktails.git#decanter to a target directory, then create a branch for your project. Please don't commit back to master.
Run npm install to install app dependencies and brunch plugins
Or:
brunch new $project_name -s kgcreative/brunch-with-cocktails.git#decanter
This command will:
Create directory $project_name
Clone git repo https://github.com/kgcreative/brunch-with-cocktails.git#decanter to the dir. The Git URL is basically the full name of our "brunch-with-cocktails" skeleton.
Run npm install to install app dependencies and brunch plugins
Configure:
If you need to add plugins or modules to this instance of brunch, you can do so via npm install --save $module or npm install --save-dev $module
Plugins and modules are added to package.json
Plugins and modules are configured via brunch-config.coffee
Run:
npm start - Runs the brunch watch --server --port 3333 command to watch the project with continuous rebuild. This will also launch HTTP server with pushState at localhost:3333.
brunch build --production builds the minified project for production
Learn:
public/ dir is fully auto-generated and served by HTTP server. Write your code in app/ dir.
Place static files you want to be copied from app/assets/ to public/.
Handlebars Static site templating structure is written in app/layouts, app/partials, and app/pages, and output to public by handlebars and html-brunch-static.