Add umd test command and separate public and private npm scripts
This commit is contained in:
parent
144456503c
commit
055763cd37
17
package.json
17
package.json
@ -10,18 +10,21 @@
|
|||||||
"exchange"
|
"exchange"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "npm run clean && run-p build:*",
|
||||||
|
"lint": "tslint src/**/*.ts",
|
||||||
|
"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",
|
"clean": "shx rm -rf _bundles lib",
|
||||||
"build:umd": "webpack",
|
"build:umd": "webpack",
|
||||||
"build:commonjs": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
|
"build:commonjs": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
|
||||||
"build": "npm run clean && run-p build:*",
|
"test:commonjs": "mocha lib/test/**/*_test.js",
|
||||||
"lint": "tslint src/**/*.ts",
|
"test:umd": "shx rm -rf lib/src/* && mv _bundles/* lib/src && npm run test:commonjs",
|
||||||
"test": "run-s clean build:commonjs && mocha lib/test/**/*_test.js",
|
|
||||||
"test:coverage": "nyc npm run test --all",
|
|
||||||
"docs:json": "typedoc --json docs/index.json .",
|
"docs:json": "typedoc --json docs/index.json .",
|
||||||
"docs:generate": "typedoc --out docs .",
|
"docs:generate": "typedoc --out docs .",
|
||||||
"docs:open": "opn docs/index.html",
|
"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"
|
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"artifacts": "Proxy Exchange TokenRegistry Token Mintable EtherToken"
|
"artifacts": "Proxy Exchange TokenRegistry Token Mintable EtherToken"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user