Skip to content

Commit

Permalink
Babel to support node 4/5
Browse files Browse the repository at this point in the history
  • Loading branch information
JD Conley committed Oct 9, 2016
1 parent 2bb0e4e commit b8c1e62
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [ "es2015", "stage-3" ],
"plugins": [
["transform-runtime", {
"polyfill": false,
"regenerator": true
}]
]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.babelrc
.travis.yml
.vscode
src
test
dist/**/*.map
dist/test
dist/lib
tsconfig.json
tslint.json
*.tgz
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"url": "git+https://github.com/jdconley/argon2themax.git"
},
"scripts": {
"prepublish": "rm -rf dist && tslint --project tslint.json && tsc -d && tsc -p .",
"pretest": "tslint --project tslint.json && tsc -p .",
"compile": "tslint --project tslint.json && tsc -d && tsc -p . && babel -d dist/lib/ dist/src/ && cp -rf dist/lib/* dist/src/",
"prepublish": "rm -rf dist && npm run compile",
"pretest": "npm run compile",
"test": "mocha dist/test/*.js"
},
"main": "dist/src/index.js",
Expand All @@ -29,20 +30,25 @@
},
"license": "MIT",
"engines": {
"node" : "^4.0.0"
"node": "^4.0.0"
},
"files":[
"files": [
"dist/src"
],
"dependencies": {
"argon2": "^0.14.0",
"babel-runtime": "^6.11.6",
"lodash": "^4.16.4"
},
"devDependencies": {
"@types/chai": "^3.4.34",
"@types/lodash": "^4.14.37",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.41",
"babel-cli": "^6.16.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-3": "^6.17.0",
"chai": "^3.5.0",
"mocha": "^3.0.2",
"tslint": "^3.15.1",
Expand Down

0 comments on commit b8c1e62

Please sign in to comment.