aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers
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/contract-wrappers
parentcc39eea9991306eabadd912256452f67fb49c20b (diff)
parent54b86b61312ac13bfe32d066ac08a79e7aabced8 (diff)
downloaddexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar
dexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.gz
dexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.bz2
dexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.lz
dexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.xz
dexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.tar.zst
dexon-sol-tools-af1d5fce6ea355b12bf5f63f51ea81ff596f7868.zip
Merge pull request #665 from 0xProject/fix/fix-build-watch
Improve Build/Watch Commands
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r--packages/contract-wrappers/package.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/contract-wrappers/package.json b/packages/contract-wrappers/package.json
index ca70ad2dd..d5ec86fc6 100644
--- a/packages/contract-wrappers/package.json
+++ b/packages/contract-wrappers/package.json
@@ -11,8 +11,9 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
- "watch": "tsc -w",
- "prebuild": "run-s clean generate_contract_wrappers",
+ "watch_without_deps": "yarn pre_build && tsc -w",
+ "build": "yarn pre_build && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
+ "pre_build": "run-s generate_contract_wrappers update_test_artifacts update_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",
@@ -20,9 +21,9 @@
"rebuild_and_test": "run-s build test",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
- "update_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/1.0.0/$i.json test/artifacts; done;",
+ "update_compact_artifacts": "copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts",
+ "update_test_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/1.0.0/$i.json test/artifacts; done;",
"clean": "shx rm -rf _bundles lib test_temp scripts test/artifacts src/contract_wrappers/generated",
- "build": "tsc && yarn update_artifacts && copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"run_mocha": "mocha lib/test/**/*_test.js lib/test/global_hooks.js --timeout 10000 --bail --exit",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},