Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arielscarpinelli/sbt-traceur
Traceur ES6 -> ES5 compiler plugin for sbt-web
https://github.com/arielscarpinelli/sbt-traceur
Last synced: 2 months ago
JSON representation
Traceur ES6 -> ES5 compiler plugin for sbt-web
- Host: GitHub
- URL: https://github.com/arielscarpinelli/sbt-traceur
- Owner: arielscarpinelli
- License: mit
- Created: 2014-12-18T18:20:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T17:09:29.000Z (about 9 years ago)
- Last Synced: 2024-08-03T06:02:06.180Z (6 months ago)
- Language: Scala
- Size: 214 KB
- Stars: 11
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sbt-plugins - sbt-traceur
README
sbt-traceur
===========[Traceur ES6 -> ES5 compiler](https://github.com/google/traceur-compiler) plugin for sbt-web
To use this plugin use the addSbtPlugin command within your project's `plugins.sbt` file:
addSbtPlugin("com.typesafe.sbt" % "sbt-traceur" % "1.0.0")
Your project's build file also needs to enable sbt-web plugins. For example with build.sbt:
lazy val root = (project in file(".")).enablePlugins(SbtWeb)
By default the plugin will try to run traceur against the asset file `javascripts/main.js` and produce a `main.js` output file which includes all the imported modules from main.js along with the traceur runtime. You only need then to include this output file from your app with
```html
```
Options
-------Option | Description
--------------------------------------------|------------
sourceFileNames in traceur in Assets | Files to compile. Should just be the 'root' modules, traceur will pull the rest. So for example if A.js requires B.js requires C.js, only list A.js here. Default `javascripts/main.js`
sourceFileNames in traceur in TestAssets | Files to compile for tests `javascript-tests/main.js`
outputFileName in traceur in Assets | Name of the output file. Default main.js
outputFileName in traceur in TestAssets | Name of the output file for tests. Default main-test.js
experimental | Turns on all experimental features. Default false
sourceMaps | Enable source maps generation. Default true
includeRuntime | If traceur-runtime.js code should be included in the output file. Default true
extraOptions | Extra options to pass to traceur command line. Refer to [traceur docs](https://github.com/google/traceur-compiler/wiki/Options-for-Compiling) for all available options