aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ethereum-types
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-07 02:38:43 +0800
committerGitHub <noreply@github.com>2018-06-07 02:38:43 +0800
commitb1e8545981de55088abcdfa6273a3cc7bc338e77 (patch)
tree04f95ff2c9005b683a82a9a63eddef156b9d3eab /packages/ethereum-types
parent49049b8c126c779d68934eaceb6835ebf3a24a49 (diff)
parent625f40cfa6fdccd82392c02c1d785fac37d966eb (diff)
downloaddexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar
dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.gz
dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.bz2
dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.lz
dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.xz
dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.zst
dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.zip
Merge pull request #653 from 0xProject/feature/ethereum-types-docs
Add a documentation page for ethereum-types package
Diffstat (limited to 'packages/ethereum-types')
-rw-r--r--packages/ethereum-types/package.json13
-rw-r--r--packages/ethereum-types/src/monorepo_scripts/stage_docs.ts8
2 files changed, 20 insertions, 1 deletions
diff --git a/packages/ethereum-types/package.json b/packages/ethereum-types/package.json
index 61ae58a37..68755c206 100644
--- a/packages/ethereum-types/package.json
+++ b/packages/ethereum-types/package.json
@@ -12,7 +12,18 @@
"build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
"clean": "shx rm -rf lib scripts",
"lint": "tslint --project .",
- "manual:postpublish": "yarn build; node ./scripts/postpublish.js"
+ "manual:postpublish": "yarn build; node ./scripts/postpublish.js",
+ "docs:stage": "node scripts/stage_docs.js",
+ "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_FILES",
+ "upload_docs_json": "aws s3 cp generated_docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type application/json"
+ },
+ "config": {
+ "postpublish": {
+ "docPublishConfigs": {
+ "s3BucketPath": "s3://doc-jsons/ethereum-types/",
+ "s3StagingBucketPath": "s3://staging-doc-jsons/ethereum-types/"
+ }
+ }
},
"license": "Apache-2.0",
"repository": {
diff --git a/packages/ethereum-types/src/monorepo_scripts/stage_docs.ts b/packages/ethereum-types/src/monorepo_scripts/stage_docs.ts
new file mode 100644
index 000000000..e732ac8eb
--- /dev/null
+++ b/packages/ethereum-types/src/monorepo_scripts/stage_docs.ts
@@ -0,0 +1,8 @@
+import { postpublishUtils } from '@0xproject/monorepo-scripts';
+
+import * as packageJSON from '../package.json';
+import * as tsConfigJSON from '../tsconfig.json';
+
+const cwd = `${__dirname}/..`;
+// tslint:disable-next-line:no-floating-promises
+postpublishUtils.publishDocsToStagingAsync(packageJSON, tsConfigJSON, cwd);