Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched to babel ES5 build in dist folder for package distribution #37

Merged
merged 1 commit into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
[
"env"
]
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ package-lock.json

# Optional REPL history
.node_repl_history

# Build folder
dist
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
"name": "ethereumjs-wallet",
"version": "0.6.0",
"description": "Utilities for handling Ethereum keys",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"coverage": "istanbul cover _mocha",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
"lint": "standard",
"prepublish": "npm run lint && npm run test",
"test": "mocha ./test/**/*.js"
"prepublishOnly": "npm run lint && npm run test:build",
"test": "mocha ./test/*.js",
"test:build": "npm run build:dist && mocha ./dist/test/*.js",
"build:dist": "babel *.js test/*.js -d dist/"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,6 +41,8 @@
"uuid": "^3.2.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"coveralls": "^3.0.0",
"istanbul": "^0.4.5",
"mocha": "^5.0.0",
Expand All @@ -45,6 +52,9 @@
"globals": [
"describe",
"it"
],
"ignore": [
"dist/**"
]
}
}