0.1.11 • Published 9 years ago

broccoli-es6-concatenator v0.1.11

Weekly downloads
53
License
MIT
Repository
github
Last release
9 years ago

broccoli-es6-concatenator

Transpile ES6 modules and concatenate them, recursively including modules referenced by import statements.

This plugin is deprecated. It uses an old version of es6-module-transpiler. The es6-module-transpiler has since been rewritten in order to correctly reflect ES6 module semantics. There is no hope to update broccoli-es6-concatenator to the new es6-module-transpiler API. Somebody will have to write a new plugin from scratch that works with the new es6-module-transpiler.

Installation

npm install --save-dev broccoli-es6-concatenator

Usage

Note: The API will change in subsequent 0.x versions.

var compileES6 = require('broccoli-es6-concatenator');
var applicationJs = compileES6(sourceTree, {
  loaderFile: 'loader.js',
  ignoredModules: [
    'resolver'
  ],
  inputFiles: [
    'todomvc/**/*.js'
  ],
  legacyFilesToAppend: [
    'jquery.js',
    'handlebars.js',
    'ember.js',
  ],
  wrapInEval: true,
  outputFile: '/assets/application.js'
});

Options

  • .wrapInEval (boolean): Enable or disable wrapping each module in an eval call with a //# sourceURL comment. Defaults to true, though this may change in the future.

  • .loaderFile (string): When specified prepends the contents of loaderFile.

0.1.11

9 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago