aboutsummaryrefslogtreecommitdiffstats
path: root/packages/fill-scenarios/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-05 03:52:37 +0800
committerFabio Berger <me@fabioberger.com>2018-06-05 03:52:37 +0800
commitf816bdf541daf47047dfc734648eebb1b1ea94d8 (patch)
treea1d6837339d897d0cb51ba2d9997670caca23e37 /packages/fill-scenarios/package.json
parentc5e5c8288e551d0768afccc38b2e7c2129d28aa6 (diff)
downloaddexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.tar
dexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.tar.gz
dexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.tar.bz2
dexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.tar.lz
dexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.tar.xz
dexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.tar.zst
dexon-sol-tools-f816bdf541daf47047dfc734648eebb1b1ea94d8.zip
Remove compact_artifacts and replace with updated artifacts
Diffstat (limited to 'packages/fill-scenarios/package.json')
-rw-r--r--packages/fill-scenarios/package.json15
1 files changed, 10 insertions, 5 deletions
diff --git a/packages/fill-scenarios/package.json b/packages/fill-scenarios/package.json
index f94344b2d..8931958e9 100644
--- a/packages/fill-scenarios/package.json
+++ b/packages/fill-scenarios/package.json
@@ -1,18 +1,23 @@
{
"name": "@0xproject/fill-scenarios",
- "version": "0.0.2",
+ "version": "1.0.0",
"description": "0x order fill scenario generator",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
- "watch": "tsc -w",
- "prebuild": "run-s clean generate_contract_wrappers",
- "generate_contract_wrappers": "abi-gen --abis 'src/compact_artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|DummyToken).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'",
- "build": "tsc && copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/compact_artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
+ "watch": "yarn update_contract_wrappers && tsc -w",
+ "build": "yarn update_contract_wrappers && tsc",
+ "update_contract_wrappers": "run-s clean update_artifacts generate_contract_wrappers",
+ "update_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/2.0.0/$i.json lib/artifacts; done;",
+ "generate_contract_wrappers": "abi-gen --abis 'lib/artifacts/@(Exchange|ERC20Token|DummyERC20Token).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'",
+ "copy_monorepo_scripts": "copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"clean": "shx rm -rf lib scripts src/generated_contract_wrappers",
"lint": "tslint --project .",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
+ "config": {
+ "contracts": "Exchange ERC20Token DummyERC20Token"
+ },
"license": "Apache-2.0",
"repository": {
"type": "git",