mobilehero-archive / adamantium

:end: No longer Maintained -- Use {nativeloop} now: https://github.com/nativeloop
Other
8 stars 0 forks source link

Support ES2015 #8

Closed brentonhouse closed 8 years ago

brentonhouse commented 8 years ago

Support ECMAScript 2015 (http://www.ecma-international.org/ecma-262/6.0/index.html) or some level of it in alloy code.

This feature can be considered done after issue #11 is complete

It can then be implemented by doing the following:

  1. In the root folder of the project, run: npm install --save babel-preset-es2015
  2. Modify the config.json file in the project, adding the es2015 preset:
{
    "global": {},
    "env:development": {},
    "env:test": {},
    "env:production": {},
    "os:android": {},
    "os:blackberry": {},
    "os:ios": {},
    "os:mobileweb": {},
    "os:windows": {},
    "dependencies": {},
    "babeljs": {
        "options": {
            "presets": [
                "es2015"
            ]
        }
    }
}