Merge pull request #658 from 0xProject/dont-automatically-rebuild-for-tests
Don't automatically rebuild when running yarn test
This commit is contained in:
		@@ -17,17 +17,15 @@
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "watch": "tsc -w",
 | 
			
		||||
        "prebuild": "run-s clean generate_contract_wrappers",
 | 
			
		||||
        "build": "run-p build:umd:prod build:commonjs; exit 0;",
 | 
			
		||||
        "build": "tsc && copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "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",
 | 
			
		||||
        "test": "run-s clean test:commonjs",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "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",
 | 
			
		||||
        "clean": "shx rm -rf _bundles lib test_temp scripts src/contract_wrappers/generated",
 | 
			
		||||
        "build:umd:prod": "NODE_ENV=production webpack",
 | 
			
		||||
        "build:commonjs": "tsc && 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",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js lib/test/global_hooks.js --timeout 10000 --bail --exit",
 | 
			
		||||
        "manual:postpublish": "yarn build; node ./scripts/postpublish.js",
 | 
			
		||||
        "docs:stage": "node scripts/stage_docs.js",
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,8 @@
 | 
			
		||||
        "lint": "tslint --project .",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --exit",
 | 
			
		||||
        "prepublishOnly": "run-p build",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,8 @@
 | 
			
		||||
        "watch": "tsc -w",
 | 
			
		||||
        "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "clean": "shx rm -rf lib scripts",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,8 @@
 | 
			
		||||
        "copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures",
 | 
			
		||||
        "lint": "tslint --project .",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --exit",
 | 
			
		||||
        "test": "run-s clean build copy_test_fixtures run_mocha",
 | 
			
		||||
        "test": "run-s copy_test_fixtures run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,8 @@
 | 
			
		||||
        "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",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "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;",
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,8 @@
 | 
			
		||||
        "prebuild": "run-s clean compile copy_artifacts generate_contract_wrappers",
 | 
			
		||||
        "copy_artifacts": "copyfiles -u 4 '../migrations/artifacts/2.0.0/**/*' ./lib/src/artifacts;",
 | 
			
		||||
        "build": "tsc",
 | 
			
		||||
        "test": "run-s build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s build test",
 | 
			
		||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
			
		||||
        "run_mocha": "mocha 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
			
		||||
        "compile": "sol-compiler",
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "watch": "tsc -w",
 | 
			
		||||
        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "watch": "tsc -w",
 | 
			
		||||
        "lint": "tslint --project .",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,8 @@
 | 
			
		||||
        "prebuild": "run-s clean compile generate_contract_wrappers copy_artifacts",
 | 
			
		||||
        "copy_artifacts": "copyfiles './artifacts/**/*' './contracts/**/*' ./lib",
 | 
			
		||||
        "build": "tsc",
 | 
			
		||||
        "test": "run-s build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s build test",
 | 
			
		||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js lib/test/global_hooks.js --bail --exit",
 | 
			
		||||
        "generate_contract_wrappers": "abi-gen --abis 'artifacts/Metacoin.json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers --backend ethers && prettier --write 'src/contract_wrappers/**.ts'",
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,8 @@
 | 
			
		||||
        "copy_monorepo_scripts": "copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "generate_contract_wrappers": "abi-gen --abis 'lib/src/artifacts/@(Exchange|IWallet|IValidator).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'",
 | 
			
		||||
        "update_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/2.0.0/$i.json lib/src/artifacts; done;",
 | 
			
		||||
        "test": "run-s build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s build test",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,8 @@
 | 
			
		||||
        "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",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "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;",
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "watch": "tsc -w",
 | 
			
		||||
        "build": "yarn clean && copyfiles 'test/fixtures/contracts/**/*' ./lib && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "test": "run-s build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s build test",
 | 
			
		||||
        "run_mocha": "mocha lib/test/*_test.js --bail --exit",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "watch": "tsc -w",
 | 
			
		||||
        "lint": "tslint --project .",
 | 
			
		||||
        "test": "run-s clean build compile_test run_mocha",
 | 
			
		||||
        "test": "run-s compile_test run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,8 @@
 | 
			
		||||
        "clean": "shx rm -rf lib scripts",
 | 
			
		||||
        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "lint": "tslint --project .",
 | 
			
		||||
        "test": "run-s clean build copy_test_environments copy_test_fixtures run_mocha",
 | 
			
		||||
        "test": "run-s copy_test_environments copy_test_fixtures run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures",
 | 
			
		||||
        "copy_test_environments": "copyfiles -u 2 './test/environments/**/*.json' ./lib/test/environments",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --exit",
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,8 @@
 | 
			
		||||
        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
			
		||||
        "clean": "shx rm -rf lib scripts",
 | 
			
		||||
        "lint": "tslint --project .",
 | 
			
		||||
        "test": "run-s clean build run_mocha",
 | 
			
		||||
        "test": "yarn run_mocha",
 | 
			
		||||
        "rebuild-and-test": "run-s clean build test",
 | 
			
		||||
        "test:circleci": "yarn test:coverage",
 | 
			
		||||
        "run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
 | 
			
		||||
        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user