node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


Adds support for traceur to JavaScript compilation to DocPad

Traceur Plugin for DocPad

Adds support for Traceur to JavaScript compilation to DocPad

Convention: .js.traceur|

npm install --save docpad-plugin-traceur

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

	[inside the docpad.config]....
				extensions: ['traceur', 'tr', 'es6'] # you can override and define your own here
					# default features can go here (initially enabled)
					# built in feature enable\disable
					# experimental features enable\disable
					annotations: true
					arrayComprehension: true
					asyncFunctions: true
					blockBinding: true
					exponentiation: true
					generatorComprehension: true
					symbols: true
					types: true

Full featureOptions list here

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