aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-08-24 20:06:02 +0800
committerGitHub <noreply@github.com>2017-08-24 20:06:02 +0800
commit3e1c436fa6196b1371b1468cbddd88a9e56bfc2c (patch)
treea2c49b3dbd2762424e1caa50d18b223daabecdc0
parent31ce891beb185ce45d5a8d1a6f5d4540e34fb6cc (diff)
parent02ae85371811a62a6677430b37d6445ce5e75315 (diff)
downloaddexon-0x-contracts-3e1c436fa6196b1371b1468cbddd88a9e56bfc2c.tar.gz
dexon-0x-contracts-3e1c436fa6196b1371b1468cbddd88a9e56bfc2c.tar.zst
dexon-0x-contracts-3e1c436fa6196b1371b1468cbddd88a9e56bfc2c.zip
Merge pull request #136 from 0xProject/commonjs-build
Rename build:commonjs:dev to build:commonjs
-rw-r--r--package.json9
1 files changed, 4 insertions, 5 deletions
diff --git a/package.json b/package.json
index 4c8eb20f4..23c1fe4aa 100644
--- a/package.json
+++ b/package.json
@@ -13,8 +13,8 @@
"types": "lib/src/index.d.ts",
"scripts": {
"prebuild": "npm run clean",
- "build": "run-p build:*:prod",
- "prepublishOnly": "run-p build:umd:prod build:commonjs:dev",
+ "build": "run-p build:umd:prod build:commonjs",
+ "prepublishOnly": "run-p build",
"postpublish": "run-s release docs:json upload_docs_json",
"release": "publish-release --assets _bundles/index.js,_bundles/index.min.js --tag $(git describe --tags) --owner 0xProject --repo 0x.js",
"upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json",
@@ -29,11 +29,10 @@
"docs:generate": "typedoc --out docs .",
"docs:open": "opn docs/index.html",
"clean": "shx rm -rf _bundles lib test_temp",
- "build:dev": "npm run clean && run-p build:*:dev",
"build:umd:dev": "webpack",
"build:umd:prod": "NODE_ENV=production webpack",
- "build:commonjs:dev": "tsc; copyfiles -u 2 './src/artifacts/**/*.json' ./lib/src/artifacts;",
- "test:commonjs": "run-s build:commonjs:dev run_mocha",
+ "build:commonjs": "tsc; copyfiles -u 2 './src/artifacts/**/*.json' ./lib/src/artifacts;",
+ "test:commonjs": "run-s build:commonjs run_mocha",
"pretest:umd": "run-s clean build:*:dev",
"substitute_umd_bundle": "npm run remove_src_files_not_used_by_tests; shx mv _bundles/* lib/src",
"remove_src_files_not_used_by_tests": "find ./lib/src \\( -path ./lib/src/utils -o -path ./lib/src/subproviders -o -path ./lib/src/schemas -o -path \"./lib/src/types.*\" \\) -prune -o -type f -print | xargs rm",