This module integrates Play! with ES6. It uses babel-standalone to run the ES6 compiler.
In general, ES6 is only re-compiled if it has changed since the last request (based on the file's last-modified date). In the absence of changes to the source, the compiled ES6 is cached forever.
In production mode, a cache header is also set telling the client to cache the file for 1 hour.
A compilation error in an included file will cause the error to be logged and will return 500. If the developer visits the resource link directly, he can see the useful compilation error screen showing the offending line.
This module is not yet on www.playframework.org.
To use it in your Play! project:
-
Add - es6 -> es6 0.1 in your dependencies.yml require section.
-
Specify new custom repositories in the your dependencies.yml repositories section:
- es6: type: HTTP artifact: "https://raw.github.com/kenyonduan/play-es6/master/dist/[module]-[revision].zip" contains: - es6 -> *
-
Run 'play dependencies' in your app's directory to download it.