🚫 UNMAINTAINED: A Brunch skeleton for rapid Ember development. Including Ember installation scripts, environment-specific JS builds, generators, and Ember.vim support.
Tapas with Ember will not be maintained after Ember 2.0 is released. Please use Ember CLI instead.
npm install -g brunch coffee-script bower
Now that you've got Brunch installed, you're three commands away from a running Ember app!
brunch new gh:mutewinter/tapas-with-ember cd cake server
Tapas with Ember runs the latest release channel Ember and latest beta of Ember Data. You can update to Beta or Canary builds using
cake ember:install. It's also easy to install the latest Ember Data or Ember Model using the
To run run tests headlessly you'll need need to install phantomjs.
brew update && brew install phantomjs
This command will install all dependencies, build the application in the test environment, and run the tests.
In two terminal sessions, run these commands:
npm run-script test:watch cake test:watch
Testem will now rerun tests every time your app code changes. You can switch
test:serverif you'd also like to manually interact with the app on http://localhost:7435.
If you want to run your tests on other browsers, modify your
testem.ymlfile to include the additional browsers. For example:
launch_in_dev: ['PhantomJS', 'Chrome', 'Firefox', 'Safari']
You can see a list of available launchers by running the command
See the FAQ in the Wiki for answers to questions like:
Tapas with Ember ships with the latest release channel Ember. You can install other versions of Ember using the commands below.
cake ember:install # cake -t "v1.9.1" ember:install # for v1.9.1 tagged release # cake -c "beta" ember:install # for beta # cake -c "canary" ember:install # for canary
cake ember:listdisplays the tagged releases since 1.0.0.
cake ember-data:install # cake -t "v1.0.0-beta.9" ember-data:install # for v1.0.0-beta.9 tagged release # cake -c "canary" ember-data:install # for canary
cake ember-data:listdisplays all tagged releases.
Note: Ember Model can not be used with Ember Data.
This skeleton makes use of scaffolt generators to help you create common files quicker.
To use first install scaffolt globally with
npm install -g scaffolt. Then you can use the following command to generate files.
scaffolt arraycontroller → app/controllers/s.coffee scaffolt component → app/components/.coffee app/templates/components/.hbs scaffolt controller → app/controllers/.coffee scaffolt helper → app/helpers/.coffee scaffolt initializer → app/initializers/.coffee scaffolt mixin → app/mixins/.coffee scaffolt model → app/models/name.coffee scaffolt route → app/routes/.coffee scaffolt router → app/config/router.coffee scaffolt template → app/template/.hbs scaffolt view → app/views/.coffee
Both the development and production versions of Ember are installed via the
ember:installcake task. To compile your project with the production version of Ember with hashed file names, run:
publicfolder will contain your production-ready Ember app.
gem install mina
cake server # start the brunch server in development cake watch # build the app continuously without a server cake build # build for production cake build:test # build for test cake test:watch # run brunch in test environment and watch for changes cake test:server # run brunch in test environment, watch for changes, and run server cake tapas:update # update Tapas to latest (Cakefile, package.json, portkey.json, config.coffee, generators/*) cake ember:install # install latest Ember cake ember:list # list tagged relases of Ember since v1.0.0 cake ember-data:install # install latest Ember Data cake ember-data:list # list tagged relases of Ember Data cake ember-model:install # install latest Ember Model
npmscripts are provided
npm test # Install dependencies, build for test, run tests npm run-script test:watch # Run tests continuously when files change
To use this app with Pow.cx, follow these simple steps:
Custom Ember.vim support is provided via
:Eadapter :Easset → app/assets/ :Ecomponent → app/components/.coffee :Econfig → app/config/.coffee :Econtroller → app/controllers/.coffee :Ehelper → app/helpers/.coffee :Einitialize :Einitializer → app/initializers/.coffee :Emixin → app/mixins/.coffee :Emodel → app/models/.coffee :Eroute → app/routes/.coffee :Estyle → app/styles/.styl :Etemplate → app/templates/.hbs :Etest → test/_test.coffee :Eutility → app/utilities/.coffee :Eview → app/views/.coffee
Tapas with Ember has a built-in update script.
It updates and overwrites