|
|
@ -25,11 +25,12 @@ |
|
|
|
"test:node": "npm run build && mocha ./test/index.test.js -b --timeout 6000 --exit", |
|
|
|
"test:node": "npm run build && mocha ./test/index.test.js -b --timeout 6000 --exit", |
|
|
|
"test:browser": "npm run build && karma start ./config/karma.conf.js --single-run", |
|
|
|
"test:browser": "npm run build && karma start ./config/karma.conf.js --single-run", |
|
|
|
"lint": "eslint --ignore-path ./config/.eslintignore src test config scripts && solhint \"contracts/**/*.sol\"", |
|
|
|
"lint": "eslint --ignore-path ./config/.eslintignore src test config scripts && solhint \"contracts/**/*.sol\"", |
|
|
|
"clear": "rimraf -rf ./dist && rimraf -rf ./gen", |
|
|
|
"clear": "rimraf -rf ./dist && rimraf -rf ./gen && rimraf -rf ./test_tmp", |
|
|
|
"build:sol": "solidity-cli -i './contracts/*.sol' -o ./gen", |
|
|
|
"build:sol": "solidity-cli -i './contracts/*.sol' -o ./gen", |
|
|
|
"build:es6": "rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es", |
|
|
|
"build:es6": "rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es", |
|
|
|
"build:es5": "cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js src --out-dir dist/lib", |
|
|
|
"build:es5": "cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js src --out-dir dist/lib", |
|
|
|
"build": "npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:sol\"" |
|
|
|
"build:test": "cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js test --out-dir test_tmp", |
|
|
|
|
|
|
|
"build": "npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" \"npm run build:sol\"" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"repository": { |
|
|
|
"repository": { |
|
|
|
"type": "git", |
|
|
|
"type": "git", |
|
|
@ -43,7 +44,7 @@ |
|
|
|
"homepage": "https://github.com/pubkey/eth-crypto#readme", |
|
|
|
"homepage": "https://github.com/pubkey/eth-crypto#readme", |
|
|
|
"devDependencies": { |
|
|
|
"devDependencies": { |
|
|
|
"assert": "1.4.1", |
|
|
|
"assert": "1.4.1", |
|
|
|
"async-test-util": "1.5.1", |
|
|
|
"async-test-util": "1.6.1", |
|
|
|
"babel-cli": "6.26.0", |
|
|
|
"babel-cli": "6.26.0", |
|
|
|
"babel-core": "6.26.3", |
|
|
|
"babel-core": "6.26.3", |
|
|
|
"babel-eslint": "8.2.3", |
|
|
|
"babel-eslint": "8.2.3", |
|
|
@ -70,15 +71,22 @@ |
|
|
|
"cross-env": "5.1.6", |
|
|
|
"cross-env": "5.1.6", |
|
|
|
"eslint": "4.19.1", |
|
|
|
"eslint": "4.19.1", |
|
|
|
"ganache-cli": "6.1.0", |
|
|
|
"ganache-cli": "6.1.0", |
|
|
|
|
|
|
|
"is-node": "1.0.2", |
|
|
|
"js-sha3": "0.7.0", |
|
|
|
"js-sha3": "0.7.0", |
|
|
|
"karma": "2.0.2", |
|
|
|
"karma": "2.0.2", |
|
|
|
"karma-babel-preprocessor": "7.0.0", |
|
|
|
"karma-babel-preprocessor": "7.0.0", |
|
|
|
"karma-browserify": "5.2.0", |
|
|
|
"karma-browserify": "5.2.0", |
|
|
|
"karma-chrome-launcher": "2.2.0", |
|
|
|
"karma-chrome-launcher": "2.2.0", |
|
|
|
"karma-coverage": "1.1.2", |
|
|
|
"karma-coverage": "1.1.2", |
|
|
|
|
|
|
|
"karma-detect-browsers": "2.3.2", |
|
|
|
|
|
|
|
"karma-edge-launcher": "0.4.2", |
|
|
|
|
|
|
|
"karma-firefox-launcher": "1.1.0", |
|
|
|
|
|
|
|
"karma-ie-launcher": "1.0.0", |
|
|
|
"karma-mocha": "1.3.0", |
|
|
|
"karma-mocha": "1.3.0", |
|
|
|
|
|
|
|
"karma-opera-launcher": "1.0.0", |
|
|
|
|
|
|
|
"karma-safari-launcher": "1.0.0", |
|
|
|
"mocha": "5.2.0", |
|
|
|
"mocha": "5.2.0", |
|
|
|
"node": "10.1.0", |
|
|
|
"node": "10.3.0", |
|
|
|
"rimraf": "2.6.2", |
|
|
|
"rimraf": "2.6.2", |
|
|
|
"solhint": "1.2.1", |
|
|
|
"solhint": "1.2.1", |
|
|
|
"solidity-cli": "1.0.1", |
|
|
|
"solidity-cli": "1.0.1", |
|
|
|