plumber-ember-template-compiler
v0.0.2
Published
Ember template compiler operation for Plumber pipelines
Downloads
5
Maintainers
Readme
plumber-ember-template-compiler
A plumber plugin to compile ember handlebars templates.
Usage
var all = require('plumber-all')
var glob = require('plumber-glob')
var traceur = require('plumber-traceur')
var concat = require('plumber-concat')
var write = require('plumber-write')
module.exports = function(pipelines) {
var sources = glob.within('app')
var writeToDist = write('dist')
pipelines['compile:hbs'] = [
sources('**/*.hbs'),
traceur.toAmd({
// this is optional
getModulePath: function(path) {
// this would change the path "app/app.hbs" to "yourAppName/app.js" etc.
return path.replace(/[^/]+/, 'yourAppName');
}
}),
concat('app'),
write('dist/assets')
]
}