aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-22 19:32:14 +0800
committerGitHub <noreply@github.com>2017-06-22 19:32:14 +0800
commit25a9ba90f508e0d147c060f60a9e3683e07d45e4 (patch)
treefb1e3af13d827a40f2fd21d64658946d69341ebf
parent656d74518d0d634febcb9e7f5540e85729530843 (diff)
parent5001e5fc706cb8f87ab539e0e1fdb2b34846ab5d (diff)
downloaddexon-0x-contracts-25a9ba90f508e0d147c060f60a9e3683e07d45e4.tar.gz
dexon-0x-contracts-25a9ba90f508e0d147c060f60a9e3683e07d45e4.tar.zst
dexon-0x-contracts-25a9ba90f508e0d147c060f60a9e3683e07d45e4.zip
Merge pull request #73 from 0xProject/json-docs
Auto-upload json docs on release
-rw-r--r--package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json
index 329f033df..d26ec6791 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,9 @@
"prebuild": "npm run clean",
"build": "run-p build:*:prod",
"prepublish": "run-p build:umd:prod build:commonjs:dev",
- "postpublish": "publish-release --assets _bundles/index.js,_bundles/index.min.js",
+ "postpublish": "run-s release docs:json upload_docs_json",
+ "release": "publish-release --assets _bundles/index.js,_bundles/index.min.js",
+ "upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json",
"lint": "tslint src/*.ts test/*.ts",
"test": "run-s clean test:commonjs",
"test:umd": "./scripts/test_umd.sh",