aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-29 18:44:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-29 18:44:22 +0800
commit055763cd373c5203182bc269ee3f8f737a34ba8e (patch)
treee91a87bc32461aac74d18addb1a7a214306bb2ab
parent144456503ce2ff476c050f88af30e3a5f07f907e (diff)
downloaddexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.tar
dexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.tar.gz
dexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.tar.bz2
dexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.tar.lz
dexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.tar.xz
dexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.tar.zst
dexon-sol-tools-055763cd373c5203182bc269ee3f8f737a34ba8e.zip
Add umd test command and separate public and private npm scripts
-rw-r--r--package.json17
1 files changed, 10 insertions, 7 deletions
diff --git a/package.json b/package.json
index 3628608bd..ab6b4d928 100644
--- a/package.json
+++ b/package.json
@@ -10,18 +10,21 @@
"exchange"
],
"scripts": {
- "clean": "shx rm -rf _bundles lib",
- "build:umd": "webpack",
- "build:commonjs": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
"build": "npm run clean && run-p build:*",
"lint": "tslint src/**/*.ts",
- "test": "run-s clean build:commonjs && mocha lib/test/**/*_test.js",
+ "test": "run-s build 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",
+
+ "clean": "shx rm -rf _bundles lib",
+ "build:umd": "webpack",
+ "build:commonjs": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
+ "test:commonjs": "mocha lib/test/**/*_test.js",
+ "test:umd": "shx rm -rf lib/src/* && mv _bundles/* lib/src && npm run test:commonjs",
"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"
+ "docs:open": "opn docs/index.html"
},
"config": {
"artifacts": "Proxy Exchange TokenRegistry Token Mintable EtherToken"