package-name

Package description

npm install package-name
2 downloads in the last week
21 downloads in the last month

Brunch with Hampsters

This is the Ember.js Brunch app skeleton that I always wanted. And now I have it! Muwahahaah.

Languages

Bonus Features

Getting started

brunch new <appname> --skeleton https://github.com/wordofchristian/brunch-with-hampsters
brunch w -s

or

$ git clone git@github.com:wordofchristian/brunch-with-hampsters.git
$ npm install
$ brunch w -s

or

$ git clone git@github.com: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.

npm loves you