This was modified directly from a new Sails v0.10.5 application.
The following modifications have been made:
assets
js
- Added
application.js
- as the Ember application entry point - dependencies
- Added
ember.js
,handlebars.js
,jquery.js
symlinks (linked to bower_components)
- Added
- Added
templates
- Added
application.hbs
as the initial Handlebars template
- Added
tasks
config
- Removed
jst.js
- Added
handlebars.js
- Uses
grunt-ember-templates
to build templates - By default, uses
assets/templates
as thetemplateBasePath
option - Output file is
.tmp/public/template.js
- Uses
- Modified
sails-linker.js
- Modified
devTpl
section to reflect output file change to.tmp/public/template.js
- Modified
- Removed
register
- Modified
compileAssets.js
andsyncAssets.js
to point to new Handlebars grunt task instead of JST
- Modified
- Modified
pipeline.js
to include jQuery and Handlebars dependencies explicitly before the Ember dependency - Changed extension on
templateFilesToInject
to reflect the change to Handlebars
views
- Modified
layout.ejs
- moved template section below client-side JS section so that dependent libraries are loaded before the templates are loaded.
- Modified
- Added
bower.json
- Default dependencies are Ember, Handlebars, and jQuery
- Modified
package.json
- addedgrunt-ember-templates
dependency