Brunch with Hampsters
This is the Ember.js Brunch app skeleton that I always wanted. And now I have it! Muwahahaah.
Languages
Bonus Features
- Swag v0.2.1
- Font Awesome v3.0
- Modernizr v2.6.2
- Brunch Auto-Reload v1.3.2
- HTML5 Boilerplate v3.0.0
- Coffeelint 1.4.4
- Whatever you want to add.
Getting started
brunch new <appname> --skeleton https://github.com/wordofchristian/brunch-with-hampsters
brunch w -s
or
$ git clone [email protected]:wordofchristian/brunch-with-hampsters.git
$ npm install
$ brunch w -s
or
$ git clone [email protected]:wordofchristian/brunch-with-hampsters.git && npm install && brunch w -s
Generators
There are some helpful generators to get you started.
First install scaffolt
npm install -g scaffolt
Calling scaffolt controller corn
will make a new controller at
app/controllers/corn.coffee
module.exports = CornController = Em.ObjectController.extend
content: null
The following generators are supported out of the box:
- Controller
- Model (T)
- ModelTest
- Style
- Template
- View (T)
- ViewTest
(T) Denotes a generator that also generates it's own test file.
All the generators live inside the /generators
directory. They are easily
customizable and you can quickly create your own. See the saffolt for more information.
##Testing
Includes mocha for testing.
./bin/test
will run all the tests from from the command line using phantom-js.
If you want to run the tests in the browser you can run brunch w -s
and then
visit localhost:3333/test/. This works with
autoreload.
Kudos
This started as a frankenmoster of my favorite parts of elving/brunch-with-hipsters and charlesjolley/ember-brunch
Special thanks to both those smart brunchers.