Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

atma-loader-traceur

tenbits5MIT1.0.19

Traceur compiler for atma-io, IncludeJS and atma-server.

readme

Traceur Compiler (Atma Plugin)

Build Status

with proper stacktrace support

The Plugin extends:

How to use
Embed into the Project
  • atma plugin install atma-loader-traceur

    This adds atma-loader-traceur npm dependency and the package.json would 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
Quick Try
  • install atma: $ npm install atma -g
  • install plugin: $ atma plugin install atma-loader-traceur
  • add test.html to the directory

      <!DOCTYPE html>
      <script src='test.es6'></script>
  • add test.es6

      setInterval(() => document.body.textContent += ".. itworks ..", 200);
  • start the server: $ atma server
  • open the browser: http://localhost:5777/test.html

The MIT License