Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Add babel deps and configs, npm build script
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Feb 11, 2019
1 parent a6d1b98 commit 113c878
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ build/Release
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

dist
Expand Down
7 changes: 7 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const presets = [
[
'@babel/env'
]
]

module.exports = { presets }
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
"name": "ethereumjs-blockchain",
"version": "3.4.0",
"description": "A module to store and interact with blocks",
"main": "index.js",
"main": "dist/index.js",
"files": [
"*.js"
"dist/**/*.js"
],
"scripts": {
"prepublishOnly": "npm run lint && npm run test && npm run build",
"build": "babel src --out-dir dist",
"coverage": "nyc npm run test && nyc report --reporter=text-lcov > .nyc_output/lcov.info",
"coveralls": "npm run coverage && coveralls <.nyc_output/lcov.info",
"lint": "standard",
"test": "tape ./test/index.js"
"test": "tape ./test/*.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,6 +41,9 @@
"semaphore": "^1.1.0"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"coveralls": "^3.0.2",
"nyc": "^13.0.1",
"standard": "^11.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const test = require('tape')
const Blockchain = require('..')
const Blockchain = require('../src')
const Block = require('ethereumjs-block')
const Common = require('ethereumjs-common').default
const async = require('async')
Expand Down

0 comments on commit 113c878

Please sign in to comment.