Skip to content
This repository was archived by the owner on Mar 16, 2022. It is now read-only.
/ broccoli-ember Public archive

Sample broccoli ember app, with compass compilation, qunit & autoreloading. Still a work in progress!

License

Notifications You must be signed in to change notification settings

RYFN/broccoli-ember

Repository files navigation

Broccoli Ember

Sample broccoli ember app, with compass compilation, qunit & autoreloading. Still a work in progress!

Heavily borrows from:

Goals

  • Faster rebuilds & live reloads for development with broccoli
  • Less steps to produce a build (as in xcode / eclipse build)
  • Testable
  • (eventually) One step build for a broccoli ember cordova project

Dependancies

broccoli cli

npm install -g broccoli-cli

bower

npm install -g bower

Structure

  • app : ember application in Ember App Kit suggested format, using ES6 modules
  • public : root html folder. Everything in here gets copied to the build directory.
  • tmp : temp broccoli build files, used by broccoli serve
  • styles : sass compass compilable scss files
  • vendor : bower dependancies & magic glue for compiling es6 modules

Running

broccoli serve will watch & serve your files To get live reload working, install Live Reload

https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei 

It should 'just work'.

You can also use grunt serve - this will do the same thing.

Testing

Visit /tests to see qunit tests (non-build, via broccoli serve only). jshint tests are autogenerated and munged into a jshint.js file, which the tests/index.html file reads.

Building & environment variables

Grunt has been included to enable building for different environments.

grunt build:{environment}

Will clean the www directory, build broccoli output into www, and run targetHtml on the index.html folder.

Depending on your {environment}, targetHtml will append either config/environments/production.js or test.js.

Only test & production are currently configured, as examples.

This allows you to have environment-specific config in the appropriate /environments file.

TODO

  • Don't quite understand the dependancy management in the brocfile, vendor files etc?
  • Would be nice to include test folder for ES6 compilation
  • Include ember-qunit
  • testem for test running

About

Sample broccoli ember app, with compass compilation, qunit & autoreloading. Still a work in progress!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published