Skip to content

Commit

Permalink
feat: add babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lellansin committed Jul 25, 2017
1 parent 3c58d35 commit 2664b7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
"es2015",
"react",
"stage-2"
],
"plugins": []
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"node": ">=4.4.0"
},
"scripts": {
"build": "babel src/ -d lib/",
"benchmark": "node bench/test",
"test": "mocha --reporter spec",
"coveralls": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
Expand All @@ -26,6 +28,9 @@
},
"homepage": "https://github.com/Lellansin/node-pnglib#readme",
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"benchmark": "^2.1.4",
"coveralls": "^2.13.1",
"istanbul": "^0.4.5",
Expand Down

0 comments on commit 2664b7b

Please sign in to comment.