Instalar plugin
npm install --save-dev broccoli broccoli-merge-trees broccoli-static-compiler broccoli-ember-emblem
E configure o Brocfile.js:
var emblem = require('broccoli-ember-emblem')
var mergeTrees = require('broccoli-merge-trees')
var pickFiles = require('broccoli-static-compiler')
function preprocess (tree) {
tree = emblem(tree, {
stripPathFromName: 'tmpl/'
})
return tree
}
var tmplTree = 'client/tmpl'
tmplTree = pickFiles(tmplTree, {
srcDir: '/',
destDir: '/tmpl'
})
tmplTree = preprocess(tmplTree)
module.exports = mergeTrees([ /* other trees, */ tmplTree ])
Conforme visto em http://jaketrent.com/post/broccoli-ember-emblem/