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

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/**"
]
}
}