Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #37 from ethereumjs/es5-dist
Browse files Browse the repository at this point in the history
Switched to babel ES5 build in dist folder for package distribution
  • Loading branch information
holgerd77 authored Mar 7, 2018
2 parents 01382b1 + 99b5d3d commit 86464c9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
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/**"
]
}
}

0 comments on commit 86464c9

Please sign in to comment.