ADD measure build-size

pull/15/head
pubkey 7 years ago
parent 4f6499ffb8
commit 91ce7f3352
  1. 1
      .travis.yml
  2. 3
      package.json
  3. 3
      src/browserify.index.js

@ -14,3 +14,4 @@ script:
- npm run build
- npm run test:node
- travis_retry npm run test:browser
- npm run test:size

@ -24,6 +24,7 @@
"test": "npm run test:node && npm run test:browser",
"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:size": "npm run build && rimraf test_tmp/browserify.js && browserify --no-builtins dist/lib/browserify.index.js > test_tmp/browserify.js && uglifyjs --compress --mangle --output test_tmp/browserify.min.js -- test_tmp/browserify.js && echo \"Build-Size (minified+gzip):\" && gzip-size --raw test_tmp/browserify.min.js",
"lint": "eslint --ignore-path ./config/.eslintignore src test config scripts && solhint \"contracts/**/*.sol\"",
"clear": "rimraf -rf ./dist && rimraf -rf ./gen && rimraf -rf ./test_tmp",
"build:sol": "solidity-cli -i './contracts/*.sol' -o ./gen",
@ -71,6 +72,7 @@
"cross-env": "5.1.6",
"eslint": "4.19.1",
"ganache-cli": "6.1.0",
"gzip-size-cli": "^2.1.0",
"is-node": "1.0.2",
"js-sha3": "0.7.0",
"karma": "2.0.2",
@ -90,6 +92,7 @@
"rimraf": "2.6.2",
"solhint": "1.2.1",
"solidity-cli": "1.0.1",
"uglify-es": "3.3.9",
"web3": "1.0.0-beta.34"
},
"dependencies": {

@ -0,0 +1,3 @@
const EthCrypto = require('./index.js');
window['EthCrypto'] = EthCrypto;
Loading…
Cancel
Save