Skip to content

Commit

Permalink
feat: use Babel to make Ace compatible with Node v6 and later
Browse files Browse the repository at this point in the history
The javascript code is now transpiled to a node6-compatible flavor
using babel, in the `build:js` task.

Closes #45
  • Loading branch information
rdeltour committed Oct 6, 2017
1 parent 1ecf40f commit 89cb1d7
Show file tree
Hide file tree
Showing 2 changed files with 533 additions and 11 deletions.
20 changes: 19 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"xpath": "^0.0.24"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^21.2.0",
"babel-preset-env": "^1.6.0",
"cross-spawn": "^5.1.0",
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^11.2.0",
Expand All @@ -86,13 +89,28 @@
"clean": "rimraf dist && mkdir dist",
"prebuild": "yarn run clean",
"build": "yarn run build:js",
"build:js": "cp -R src/ dist",
"build:js": "babel src -d dist --copy-files --ignore *.test.js",
"build:scripts": "babel src -d dist --presets browsers --only src/scripts",
"build:watch": "watch 'yarn run build' src",
"lint": "eslint src",
"test": "jest",
"docs": "echo add docs",
"prepublishOnly": "yarn run test && yarn run build"
},
"babel": {
"presets": [
[
"env",
{
"targets": {
"node": [
"6"
]
}
}
]
]
},
"jest": {
"testEnvironment": "node"
}
Expand Down
Loading

0 comments on commit 89cb1d7

Please sign in to comment.