aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-06 20:46:52 +0800
committerGitHub <noreply@github.com>2018-06-06 20:46:52 +0800
commitaf1d5fce6ea355b12bf5f63f51ea81ff596f7868 (patch)
tree6dd6a07be9c6fabf94e1c3250faa86c1dc6aa26c /packages/0x.js/package.json
parentcc39eea9991306eabadd912256452f67fb49c20b (diff)
parent54b86b61312ac13bfe32d066ac08a79e7aabced8 (diff)
downloaddexon-0x-contracts-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.gz
dexon-0x-contracts-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.zst
dexon-0x-contracts-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.zip
Merge pull request #665 from 0xProject/fix/fix-build-watch
Improve Build/Watch Commands
Diffstat (limited to 'packages/0x.js/package.json')
-rw-r--r--packages/0x.js/package.json8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json
index 4365edba6..7ddfce610 100644
--- a/packages/0x.js/package.json
+++ b/packages/0x.js/package.json
@@ -15,9 +15,11 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
- "watch": "tsc -w",
- "prebuild": "run-s clean generate_contract_wrappers",
- "build": "run-p build:umd:prod build:commonjs; exit 0;",
+ "watch_without_deps": "yarn pre_build && tsc -w",
+ "build": "yarn pre_build && yarn build:all && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
+ "build:all": "run-p build:umd:prod build:commonjs; exit 0;",
+ "pre_build": "run-s generate_contract_wrappers copy_artifacts",
+ "copy_artifacts": "copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts",
"generate_contract_wrappers": "abi-gen --abis 'src/compact_artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|TokenRegistry|DummyToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers && prettier --write 'src/contract_wrappers/generated/**.ts'",
"lint": "tslint --project .",
"test:circleci": "run-s test:coverage",