Brunch with Hipsters is a rad Brunch app skeleton that comes with unicorns out of the box. Take a look at Hackerank (an example app) to see how it works. Brunch with Hipsters was awesome before awesome was awesome.
$ brunch new git@github.com:elving/brunch-with-hipsters.git
$ brunch w -s
or
$ git clone git@github.com:elving/brunch-with-hipsters.git
$ npm install
$ bower install
$ brunch w -s
or
$ git clone git@github.com:elving/brunch-with-hipsters.git && npm install && $ bower install && brunch w -s
First install scaffolt:
npm install -g scaffolt
Then you can use the following commands to generate files:
scaffolt view <name>
→ app/views/name.coffee
→ test/views/name_test.coffee
scaffolt model <name>
→ app/models/name.coffee
→ test/models/name_test.coffee
scaffolt style <name>
→ app/views/styles/name.styl
scaffolt template <name>
→ app/views/templates/name.hbs
scaffolt collection <name>
→ app/collections/name.coffee
→ test/collections/name_test.coffee
scaffolt module <name>
→ app/views/name.coffee
→ test/views/name_test.coffee
→ app/models/name.coffee
→ test/models/name_test.coffee
→ app/views/styles/name.styl
→ app/views/templates/name.hbs
To run your tests using Karma you will need to install phantomjs:
brew update && brew install phantomjs
Run the tests:
cake test
Build and test your app:
cake build:test
You can change Karma's configuration by editing test/karma.conf.coffee
and add any test helpers by editing test/helpers.coffee
.