Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

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

    Install

    npm i plumber-ember-template-compiler

    DownloadsWeekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar