aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-11 18:05:32 +0800
committerFabio Berger <me@fabioberger.com>2018-05-11 18:05:32 +0800
commit733fe5b3359a490a0f113ac69d3af469fb6b4729 (patch)
tree2dbd76a1bed597a414becfbfdb85ee3539d9f351
parent8302e1687ac1383d075ccdc075be8b7a617b00cd (diff)
downloaddexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.tar
dexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.tar.gz
dexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.tar.bz2
dexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.tar.lz
dexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.tar.xz
dexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.tar.zst
dexon-sol-tools-733fe5b3359a490a0f113ac69d3af469fb6b4729.zip
Add artifacts to clean command
-rw-r--r--packages/0x.js/package.json2
-rw-r--r--packages/contract-wrappers/package.json2
-rw-r--r--packages/contracts/package.json2
-rw-r--r--packages/fill-scenarios/package.json2
-rw-r--r--packages/metacoin/package.json2
-rw-r--r--packages/migrations/package.json2
-rw-r--r--packages/order-watcher/package.json2
-rw-r--r--packages/sol-cov/package.json2
8 files changed, 8 insertions, 8 deletions
diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json
index d1091b9e9..1af5fcdb6 100644
--- a/packages/0x.js/package.json
+++ b/packages/0x.js/package.json
@@ -22,7 +22,7 @@
"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;",
- "clean": "shx rm -rf _bundles lib test_temp scripts",
+ "clean": "shx rm -rf _bundles lib test_temp scripts test/artifacts src/contract_wrappers/generated",
"build:umd:prod": "NODE_ENV=production webpack",
"build:commonjs": "tsc && yarn update_artifacts && copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"test:commonjs": "run-s build:commonjs run_mocha",
diff --git a/packages/contract-wrappers/package.json b/packages/contract-wrappers/package.json
index ba3a6d6e9..83cf256d9 100644
--- a/packages/contract-wrappers/package.json
+++ b/packages/contract-wrappers/package.json
@@ -19,8 +19,8 @@
"test": "run-s clean build run_mocha",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
- "clean": "shx rm -rf _bundles lib test_temp scripts",
"update_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/$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"
diff --git a/packages/contracts/package.json b/packages/contracts/package.json
index cfd895a58..891488bd9 100644
--- a/packages/contracts/package.json
+++ b/packages/contracts/package.json
@@ -17,7 +17,7 @@
"run_mocha": "mocha 'lib/test/**/*.js' --timeout 100000 --bail --exit",
"compile:comment": "Yarn workspaces do not link binaries correctly so we need to reference them directly https://github.com/yarnpkg/yarn/issues/3846",
"compile": "node ../deployer/lib/src/cli.js compile",
- "clean": "shx rm -rf ./lib",
+ "clean": "shx rm -rf lib src/contract_wrappers/generated",
"generate_contract_wrappers": "node ../abi-gen/lib/index.js --abis ${npm_package_config_abis} --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 . 'migrations/**/*.ts' 'test/**/*.ts' 'util/**/*.ts' 'deploy/**/*.ts'",
"coverage:report:text": "istanbul report text",
diff --git a/packages/fill-scenarios/package.json b/packages/fill-scenarios/package.json
index 1027a52c6..3ffb2a2c3 100644
--- a/packages/fill-scenarios/package.json
+++ b/packages/fill-scenarios/package.json
@@ -9,7 +9,7 @@
"prebuild": "run-s clean generate_contract_wrappers",
"generate_contract_wrappers": "node ../abi-gen/lib/index.js --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",
- "clean": "shx rm -rf lib scripts",
+ "clean": "shx rm -rf lib scripts src/generated_contract_wrappers",
"lint": "tslint --project .",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
diff --git a/packages/metacoin/package.json b/packages/metacoin/package.json
index 17aad0aaf..4cda4b418 100644
--- a/packages/metacoin/package.json
+++ b/packages/metacoin/package.json
@@ -6,7 +6,7 @@
"scripts": {
"build:watch": "tsc -w",
"lint": "tslint --project .",
- "clean": "shx rm -rf lib",
+ "clean": "shx rm -rf lib artifacts src/contract_wrappers",
"prebuild": "run-s clean compile generate_contract_wrappers copy_artifacts",
"copy_artifacts": "copyfiles './artifacts/**/*' './contracts/**/*' ./lib",
"build": "tsc",
diff --git a/packages/migrations/package.json b/packages/migrations/package.json
index 509cf81fb..883e489f0 100644
--- a/packages/migrations/package.json
+++ b/packages/migrations/package.json
@@ -7,7 +7,7 @@
"scripts": {
"build:watch": "tsc -w",
"build": "tsc",
- "clean": "shx rm -rf lib",
+ "clean": "shx rm -rf lib artifacts",
"lint": "tslint --project .",
"migrate": "run-s build compile script:migrate",
"script:migrate": "node ./lib/migrate.js",
diff --git a/packages/order-watcher/package.json b/packages/order-watcher/package.json
index bc72bdbed..68011a6c1 100644
--- a/packages/order-watcher/package.json
+++ b/packages/order-watcher/package.json
@@ -20,8 +20,8 @@
"test": "run-s clean build run_mocha",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
- "clean": "shx rm -rf _bundles lib test_temp scripts",
"update_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/$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"
diff --git a/packages/sol-cov/package.json b/packages/sol-cov/package.json
index 536d05370..0a64af4e5 100644
--- a/packages/sol-cov/package.json
+++ b/packages/sol-cov/package.json
@@ -12,7 +12,7 @@
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"test:circleci": "yarn test:coverage",
"run_mocha": "mocha lib/test/**/*_test.js --exit",
- "clean": "shx rm -rf lib scripts",
+ "clean": "shx rm -rf lib scripts test/fixtures/artifacts src/artifacts",
"build": "copyfiles 'test/fixtures/**/*' ./lib && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"compile_test": "node ../deployer/lib/src/cli.js compile",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js",