Skip to content

Commit

Permalink
chore: setup documentation generation with TypeDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Faust committed Aug 26, 2019
1 parent 583f5a9 commit 01e4744
Show file tree
Hide file tree
Showing 35 changed files with 136 additions and 4 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"bootstrap": "yarn lerna bootstrap",
"clean": "yarn lerna clean --yes",
"build": "yarn lerna run build",
"build:docs": "yarn lerna run build:docs",
"lint": "./node_modules/eslint/bin/eslint.js packages --ext .js,.ts --fix",
"format": "yarn lint && yarn prettier",
"prettier": "prettier --write \"./*.{ts,js,json,md}\" \"./packages/**/*.{ts,js,json,md}\" \"./__tests__/**/*.{ts,js,json,md}\"",
Expand Down Expand Up @@ -91,6 +92,7 @@
"rimraf": "^2.6.3",
"snyk": "^1.193.1",
"ts-jest": "^24.0.2",
"typedoc": "^0.15.0",
"typescript": "^3.5.3",
"typesync": "^0.5.1",
"uuid": "^3.3.2"
Expand Down
1 change: 1 addition & 0 deletions packages/core-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-database-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "yarn clean && yarn copy && yarn compile",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../",
Expand Down
1 change: 1 addition & 0 deletions packages/core-database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-elasticsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-error-tracker-airbrake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-error-tracker-bugsnag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-error-tracker-raygun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-error-tracker-rollbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-error-tracker-sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-exchange-json-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-forger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-http-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-jest-matchers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/core-logger-pino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-logger-signale/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-logger-winston/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-new-relic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-p2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-snapshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "yarn clean && yarn copy && yarn compile",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../",
Expand Down
1 change: 1 addition & 0 deletions packages/core-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-tester-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepack": "../../node_modules/.bin/oclif-dev manifest && npm shrinkwrap",
Expand Down
1 change: 1 addition & 0 deletions packages/core-transaction-pool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-vote-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile && cp -r src/templates dist/templates",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core-wallet-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core-webhooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"ark": "./bin/run",
"build": "yarn clean && yarn compile && yarn copy",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"copy": "cd ./src && cpy './config' '../dist/' --parents && cd ..",
Expand Down
1 change: 1 addition & 0 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build": "yarn clean && tsc",
"build:rollup": "yarn clean && tsc && rollup -c",
"build:watch": "yarn clean && yarn compile -w",
"build:docs": "../../node_modules/typedoc/bin/typedoc --out docs src",
"clean": "del dist",
"compile": "../../node_modules/typescript/bin/tsc",
"prepublishOnly": "yarn build"
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"incremental": true,
"lib": ["es2019"],
"module": "commonjs",
"moduleResolution": "node",
Expand Down
Loading

0 comments on commit 01e4744

Please sign in to comment.