peterjosling / traceur-brunch

Adds Traceur ES6 transpiler support to brunch
2 stars 3 forks source link

traceur-brunch

Adds Traceur ES6 transpiler support to brunch.

Usage

Install the plugin via npm with npm install --save traceur-brunch.

Or, do manual install:

Note: The entry in your package.json file must come before any other plugins which process Javascript (such as javascript-brunch).

Config

By default all .js sources in your app/ directory will be compiled and wrapped in the module wrapper specified in your brunch config. This path can be overridden in the plugin section of your config.coffee.

Extra options may be passed to the compiler under the options key in the plugin config.

plugins:
    traceur:
        paths: /^app/
        options:
            experimental: true # Passed to traceur