aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-05 21:38:40 +0800
committerFabio Berger <me@fabioberger.com>2018-06-05 21:38:40 +0800
commit25f62daf146895a1e0e0c966166f08f28467ae2e (patch)
tree6366e90b21d8aa4198c8719f005b4e2e51f26fa3 /packages/order-watcher/package.json
parent44a736c53b8901ee36dbe009ad570930bbc8e676 (diff)
downloaddexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.gz
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.bz2
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.lz
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.xz
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.zst
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.zip
- Rename watch to watch_without_deps in sub-packages, so dev's don't confuse running watch from root dir, with sub-package dir
- stop using special prebuild script name and run pre_build steps for `watch` and `build` commands - Remove `clean` step from `build`/`watch`
Diffstat (limited to 'packages/order-watcher/package.json')
-rw-r--r--packages/order-watcher/package.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/order-watcher/package.json b/packages/order-watcher/package.json
index 44954165d..feac4e96f 100644
--- a/packages/order-watcher/package.json
+++ b/packages/order-watcher/package.json
@@ -12,8 +12,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 update_test_artifacts update_compact_artifacts generate_contract_wrappers",
"generate_contract_wrappers": "abi-gen --abis 'src/compact_artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/generated_contract_wrappers --backend ethers && prettier --write 'src/generated_contract_wrappers/**.ts'",
"lint": "tslint --project .",
"test:circleci": "run-s test:coverage",
@@ -21,9 +22,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/generated_contract_wrappers",
- "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"
},