Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

artificialio/sails-hook-traceur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sails-hook-traceur

npm version Dependency Status

Needs at least Sails version 0.11-rc to work

Sails JS hook to activate ES6/7 Javascript code for your whole sails app, via traceur.

Installation

npm install sails-hook-traceur

Usage

Just lift your app as normal, and enjoy the future of Javascript today. To see what is possible, see: https://github.com/google/traceur-compiler/wiki/LanguageFeatures

Configuration

By default, configuration lives in sails.config.traceur. The configuration key (traceur) can be changed by setting sails.config.hooks['sails-hook-traceur'].configKey.

Parameter Type Details
compile ((boolean)) Whether or not sails should compile/allow ES6/7 code. Defaults to true.

That’s it!

About

Sails JS hook to enable future Javascript today, using traceur-compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published