docpad-plugin-traceur

Adds support for traceur to JavaScript compilation to DocPad

npm install docpad-plugin-traceur
4 downloads in the last week
10 downloads in the last month

Traceur Plugin for DocPad

Build Status NPM version Dependency Status Gittip donate button

Adds support for Traceur to JavaScript compilation to DocPad

Convention: .js.traceur|.js.tr

Install

npm install --save docpad-plugin-traceur

Configure

You can customise the compiler optons sent to the traceur compiler via the plugin's featureOptions config option

    [inside the docpad.config]....
        plugins:
            traceur:
                showLineNumbers: false # add comments giving input line numbers
                featureOptions:
                    # default features can go here (initially enabled)

                    # experimental features
                    blockBinding: true
                    privateNameSyntax: true
                    privateNames: true
                    cascadeExpression: true
                    trapMemberLookup: true
                    deferredFunctions: true
                    propertyOptionalComma: true
                    types: true

Full featureOptions list here

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ [Stringz Solutions Ltd]
Copyright © 2013+ Peter Flannery

npm loves you