Thanks to visit codestin.com
Credit goes to github.com

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

Commit 86464c9

Browse files
authored
Merge pull request #37 from ethereumjs/es5-dist
Switched to babel ES5 build in dist folder for package distribution
2 parents 01382b1 + 99b5d3d commit 86464c9

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
[
4+
"env"
5+
]
6+
]
7+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ package-lock.json
3333

3434
# Optional REPL history
3535
.node_repl_history
36+
37+
# Build folder
38+
dist

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
"name": "ethereumjs-wallet",
33
"version": "0.6.0",
44
"description": "Utilities for handling Ethereum keys",
5-
"main": "index.js",
5+
"main": "dist/index.js",
6+
"files": [
7+
"dist"
8+
],
69
"scripts": {
710
"coverage": "istanbul cover _mocha",
811
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
912
"lint": "standard",
10-
"prepublish": "npm run lint && npm run test",
11-
"test": "mocha ./test/**/*.js"
13+
"prepublishOnly": "npm run lint && npm run test:build",
14+
"test": "mocha ./test/*.js",
15+
"test:build": "npm run build:dist && mocha ./dist/test/*.js",
16+
"build:dist": "babel *.js test/*.js -d dist/"
1217
},
1318
"repository": {
1419
"type": "git",
@@ -36,6 +41,8 @@
3641
"uuid": "^3.2.1"
3742
},
3843
"devDependencies": {
44+
"babel-cli": "^6.26.0",
45+
"babel-preset-env": "^1.6.1",
3946
"coveralls": "^3.0.0",
4047
"istanbul": "^0.4.5",
4148
"mocha": "^5.0.0",
@@ -45,6 +52,9 @@
4552
"globals": [
4653
"describe",
4754
"it"
55+
],
56+
"ignore": [
57+
"dist/**"
4858
]
4959
}
5060
}

0 commit comments

Comments
 (0)