Traceur Compiler (Atma Plugin)
with proper stacktrace support
The Plugin extends:
IncludeJSwith a custom loaderatma-iowith a custom middleware to read ES6 filesatma-serverandAtma Toolkitwith aHTTPHandlerto serve compiled sources (with sourceMap support)
-
atma plugin install atma-loader-traceurThis adds
atma-loader-traceurnpm dependency and thepackage.jsonwould look like:{ "dependencies": { "atma-loader-traceur" }, "atma": { "plugins": [ "atma-loader-traceur" ], "settings": { "atma-loader-traceur": { "extensions" : [ "es6" ] "traceur": {} // traceur-compiler options } } } } -
That's all. Now, you are ready to use the 'next javascript' in your project
-
install atma:
$ npm install atma -g -
install plugin:
$ atma plugin install atma-loader-traceur -
add
test.htmlto the directory<!DOCTYPE html> <script src='test.es6'></script>
-
add
test.es6setInterval(() => document.body.textContent += ".. itworks ..", 200);
-
start the server:
$ atma server -
open the browser:
http://localhost:5777/test.html
The MIT License
