aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-29 22:04:13 +0800
committerGitHub <noreply@github.com>2017-05-29 22:04:13 +0800
commitabd0228ba8b71b35ff089fc647674caa08d7a24e (patch)
tree9da41caf73bf7c924071981fcbebe4732076adcb /package.json
parent232e03195974403878f303a59f0ff8669b54f205 (diff)
parent7bd3d87f7a7d7c54b08e3e62b8075ec569498c63 (diff)
downloaddexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.tar
dexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.tar.gz
dexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.tar.bz2
dexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.tar.lz
dexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.tar.xz
dexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.tar.zst
dexon-sol-tools-abd0228ba8b71b35ff089fc647674caa08d7a24e.zip
Merge pull request #16 from 0xProject/umd-tests
Umd tests
Diffstat (limited to 'package.json')
-rw-r--r--package.json23
1 files changed, 16 insertions, 7 deletions
diff --git a/package.json b/package.json
index 5c352bc88..3b29795a8 100644
--- a/package.json
+++ b/package.json
@@ -10,18 +10,27 @@
"exchange"
],
"scripts": {
- "clean": "shx rm -rf _bundles lib",
- "build:bundle": "webpack",
- "build:commonjs": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
- "build": "npm run clean && run-p build:*",
+ "build": "npm run clean && run-p build:*:prod",
"lint": "tslint src/**/*.ts",
- "test": "run-s clean build:commonjs && mocha lib/test/**/*_test.js",
+ "test": "run-s test:commonjs test:umd",
"test:coverage": "nyc npm run test --all",
+ "update_contracts": "for i in ${npm_package_config_artifacts}; do copyfiles -u 4 ../contracts/build/contracts/$i.json ../0x.js/src/artifacts; done;",
+ "testrpc": "testrpc -p 8545 --networkId 50",
"docs:json": "typedoc --json docs/index.json .",
"docs:generate": "typedoc --out docs .",
"docs:open": "opn docs/index.html",
- "update_contracts": "for i in ${npm_package_config_artifacts}; do copyfiles -u 4 ../contracts/build/contracts/$i.json ../0x.js/src/artifacts; done;",
- "testrpc": "testrpc -p 8545 --networkId 50"
+
+ "clean": "shx rm -rf _bundles lib test_temp",
+ "build:dev": "npm run clean && run-p build:*:dev",
+ "build:umd:dev": "webpack",
+ "build:umd:prod": "webpack -p",
+ "build:commonjs:dev": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
+ "run_mocha": "mocha test_temp/test/**/*_test.js",
+ "test:commonjs": "run-s build:commonjs:dev setup_commonjs run_mocha tear_down",
+ "test:umd": "run-s build:*:dev setup_umd run_mocha tear_down",
+ "setup_commonjs": "shx cp -r lib test_temp",
+ "setup_umd": "shx mkdir -p test_temp/src && shx cp _bundles/* test_temp/src && shx cp -r lib/test test_temp/test",
+ "tear_down": "shx rm -rf test_temp"
},
"config": {
"artifacts": "Proxy Exchange TokenRegistry Token Mintable EtherToken"