plumber-ember-template-compiler

0.0.2 • Public • Published

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')
  ]
}

Package Sidebar

Install

npm i plumber-ember-template-compiler

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jpike