Skip to content

Commit

Permalink
Upgrade to babel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird committed Feb 14, 2016
1 parent fc4a726 commit 794dd25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [ "es2015" ],
"plugins": [
"add-module-exports"
]
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "npm run build && mocha --recursive --reporter spec --bail --check-leaks",
"build": "node ./node_modules/babel/bin/babel src -d lib && node ./node_modules/babel/bin/babel test-src -d test && node ./node_modules/babel/bin/babel validators-src -d validators",
"build": "node ./node_modules/.bin/babel src -d lib && node ./node_modules/.bin/babel test-src -d test && node ./node_modules/.bin/babel validators-src -d validators",
"coverage": "npm run build && ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- --ui bdd --recursive -R spec -t 5000",
"push-coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"prepublish": "npm run build"
Expand Down Expand Up @@ -46,7 +46,10 @@
"sanitizer": "^0.1.2"
},
"devDependencies": {
"babel": "^5.8.23",
"babel": "^6.5.2",
"babel-cli": "^6.5.1",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-preset-es2015": "^6.5.0",
"coveralls": "^2.11.3",
"istanbul": "^0.4.0",
"karma": "^0.13.14",
Expand Down

0 comments on commit 794dd25

Please sign in to comment.