Skip to content

Commit bd82b40

Browse files
committed
Added workflow for doc gen
1 parent 0cfc162 commit bd82b40

File tree

4 files changed

+123
-5
lines changed

4 files changed

+123
-5
lines changed

.github/workflows/typedoc.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Generate docs
15+
run: yarn install && sudo npm i -g typedoc && typedoc --out docs --mode library .
16+
- name: Deploy to GitHub Pages
17+
if: success()
18+
uses: crazy-max/ghaction-github-pages@v2
19+
with:
20+
target_branch: gh-pages
21+
build_dir: public
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33
jspm_packages
44
build
55
dist
6+
docs
67
.env
78
yarn-error.log
89
!*fixtures/node_modules

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"dev": "DEBUG=bp* ts-node-dev --files index.js",
2222
"build": "tsc",
2323
"test": "jest",
24+
"docs": "typedoc --out docs",
2425
"test:ci": "yarn test --colors",
2526
"prettier": "prettier --write '**/*.{html,js,ts,json,css,scss,jsx,flow,md,yml,yaml}'",
2627
"prepublish": "rm -rf build && tsc && yarn prettier"
@@ -53,6 +54,7 @@
5354
"pretty-quick": "^3.1.0",
5455
"ts-node": "^9.0.0",
5556
"ts-node-dev": "^1.0.0-pre.65",
57+
"typedoc": "^0.19.2",
5658
"typescript": "^4.0.3"
5759
},
5860
"dependencies": {

yarn.lock

+97-5
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,11 @@ asynckit@^0.4.0:
20002000
resolved "https://packages.atlassian.com/api/npm/npm-remote/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
20012001
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=
20022002

2003+
at-least-node@^1.0.0:
2004+
version "1.0.0"
2005+
resolved "https://packages.atlassian.com/api/npm/npm-remote/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
2006+
integrity sha1-YCzUtG6EStTv/JKoARo8RuAjjcI=
2007+
20032008
atob@^2.1.2:
20042009
version "2.1.2"
20052010
resolved "https://packages.atlassian.com/api/npm/npm-remote/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
@@ -4358,6 +4363,16 @@ from2@^2.1.0:
43584363
inherits "^2.0.1"
43594364
readable-stream "^2.0.0"
43604365

4366+
fs-extra@^9.0.1:
4367+
version "9.0.1"
4368+
resolved "https://packages.atlassian.com/api/npm/npm-remote/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
4369+
integrity sha1-kQ2gBiQ3ukw5/t2GPxZ1zP78ufw=
4370+
dependencies:
4371+
at-least-node "^1.0.0"
4372+
graceful-fs "^4.2.0"
4373+
jsonfile "^6.0.1"
4374+
universalify "^1.0.0"
4375+
43614376
fs-minipass@^2.0.0:
43624377
version "2.1.0"
43634378
resolved "https://packages.atlassian.com/api/npm/npm-remote/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb"
@@ -4572,7 +4587,7 @@ got@^9.6.0:
45724587
to-readable-stream "^1.0.0"
45734588
url-parse-lax "^3.0.0"
45744589

4575-
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2:
4590+
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
45764591
version "4.2.4"
45774592
resolved "https://packages.atlassian.com/api/npm/npm-remote/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
45784593
integrity sha1-Ila94U02MpWMRl68ltxGfKB6Kfs=
@@ -4582,7 +4597,7 @@ growly@^1.3.0:
45824597
resolved "https://packages.atlassian.com/api/npm/npm-remote/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
45834598
integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=
45844599

4585-
4600+
[email protected], handlebars@^4.7.6:
45864601
version "4.7.6"
45874602
resolved "https://packages.atlassian.com/api/npm/npm-remote/handlebars/-/handlebars-4.7.6.tgz#d4c05c1baf90e9945f77aa68a7a219aa4a7df74e"
45884603
integrity sha1-1MBcG6+Q6ZRfd6pop6IZqkp9904=
@@ -4771,6 +4786,11 @@ [email protected]:
47714786
resolved "https://packages.atlassian.com/api/npm/npm-remote/hide-powered-by/-/hide-powered-by-1.1.0.tgz#be3ea9cab4bdb16f8744be873755ca663383fa7a"
47724787
integrity sha1-vj6pyrS9sW+HRL6HN1XKZjOD+no=
47734788

4789+
highlight.js@^10.2.0:
4790+
version "10.2.1"
4791+
resolved "https://packages.atlassian.com/api/npm/npm-remote/highlight.js/-/highlight.js-10.2.1.tgz#09784fe2e95612abbefd510948945d4fe6fa9668"
4792+
integrity sha1-CXhP4ulWEqu+/VEJSJRdT+b6lmg=
4793+
47744794
hmac-drbg@^1.0.0:
47754795
version "1.0.1"
47764796
resolved "https://packages.atlassian.com/api/npm/npm-remote/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
@@ -5097,6 +5117,11 @@ inquirer@^7.0.0:
50975117
strip-ansi "^6.0.0"
50985118
through "^2.3.6"
50995119

5120+
interpret@^1.0.0:
5121+
version "1.4.0"
5122+
resolved "https://packages.atlassian.com/api/npm/npm-remote/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
5123+
integrity sha1-Zlq4vE2iendKQFhOgS4+D6RbGh4=
5124+
51005125
invariant@^2.2.4:
51015126
version "2.2.4"
51025127
resolved "https://packages.atlassian.com/api/npm/npm-remote/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
@@ -6046,6 +6071,15 @@ json5@^2.1.2:
60466071
dependencies:
60476072
minimist "^1.2.5"
60486073

6074+
jsonfile@^6.0.1:
6075+
version "6.0.1"
6076+
resolved "https://packages.atlassian.com/api/npm/npm-remote/jsonfile/-/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179"
6077+
integrity sha1-mJZsuiFDeMjIS4LghZB7QL9hQXk=
6078+
dependencies:
6079+
universalify "^1.0.0"
6080+
optionalDependencies:
6081+
graceful-fs "^4.1.6"
6082+
60496083
jsprim@^1.2.2:
60506084
version "1.4.1"
60516085
resolved "https://packages.atlassian.com/api/npm/npm-remote/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
@@ -6314,7 +6348,7 @@ lodash.zip@^4.2.0:
63146348
resolved "https://packages.atlassian.com/api/npm/npm-remote/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020"
63156349
integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA=
63166350

6317-
lodash@^4.0.0, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.5, lodash@~4.17.10:
6351+
lodash@^4.0.0, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.5, lodash@~4.17.10:
63186352
version "4.17.20"
63196353
resolved "https://packages.atlassian.com/api/npm/npm-remote/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
63206354
integrity sha1-tEqbYpe8tpjxxRo1RaKzs2jVnFI=
@@ -6394,6 +6428,11 @@ lru-cache@^6.0.0:
63946428
dependencies:
63956429
yallist "^4.0.0"
63966430

6431+
lunr@^2.3.9:
6432+
version "2.3.9"
6433+
resolved "https://packages.atlassian.com/api/npm/npm-remote/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1"
6434+
integrity sha1-GLEjFCgyM33W6WTfGlp3B7JdNeE=
6435+
63976436
make-dir@^2.0.0, make-dir@^2.1.0:
63986437
version "2.1.0"
63996438
resolved "https://packages.atlassian.com/api/npm/npm-remote/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
@@ -6450,6 +6489,11 @@ map-visit@^1.0.0:
64506489
dependencies:
64516490
object-visit "^1.0.0"
64526491

6492+
marked@^1.1.1:
6493+
version "1.2.0"
6494+
resolved "https://packages.atlassian.com/api/npm/npm-remote/marked/-/marked-1.2.0.tgz#7221ce2395fa6cf6d722e6f2871a32d3513c85ca"
6495+
integrity sha1-ciHOI5X6bPbXIubyhxoy01E8hco=
6496+
64536497
md5.js@^1.3.4:
64546498
version "1.3.5"
64556499
resolved "https://packages.atlassian.com/api/npm/npm-remote/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"
@@ -6658,7 +6702,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
66586702
resolved "https://packages.atlassian.com/api/npm/npm-remote/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
66596703
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
66606704

6661-
minimatch@^3.0.4, minimatch@~3.0.2:
6705+
minimatch@^3.0.0, minimatch@^3.0.4, minimatch@~3.0.2:
66626706
version "3.0.4"
66636707
resolved "https://packages.atlassian.com/api/npm/npm-remote/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
66646708
integrity sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=
@@ -8113,6 +8157,11 @@ process@^0.11.10:
81138157
resolved "https://packages.atlassian.com/api/npm/npm-remote/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
81148158
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
81158159

8160+
progress@^2.0.3:
8161+
version "2.0.3"
8162+
resolved "https://packages.atlassian.com/api/npm/npm-remote/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
8163+
integrity sha1-foz42PW48jnBvGi+tOt4Vn1XLvg=
8164+
81168165
promise-inflight@^1.0.1:
81178166
version "1.0.1"
81188167
resolved "https://packages.atlassian.com/api/npm/npm-remote/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
@@ -8504,6 +8553,13 @@ realpath-native@^1.1.0:
85048553
dependencies:
85058554
util.promisify "^1.0.0"
85068555

8556+
rechoir@^0.6.2:
8557+
version "0.6.2"
8558+
resolved "https://packages.atlassian.com/api/npm/npm-remote/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
8559+
integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=
8560+
dependencies:
8561+
resolve "^1.1.6"
8562+
85078563
redent@^1.0.0:
85088564
version "1.0.0"
85098565
resolved "https://packages.atlassian.com/api/npm/npm-remote/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde"
@@ -8715,7 +8771,7 @@ [email protected]:
87158771
resolved "https://packages.atlassian.com/api/npm/npm-remote/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
87168772
integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=
87178773

8718-
resolve@^1.0.0, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.15.1, resolve@^1.3.2:
8774+
resolve@^1.0.0, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.15.1, resolve@^1.3.2:
87198775
version "1.17.0"
87208776
resolved "https://packages.atlassian.com/api/npm/npm-remote/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"
87218777
integrity sha1-sllBtUloIxzC0bt2p5y38sC/hEQ=
@@ -9157,6 +9213,15 @@ shebang-regex@^3.0.0:
91579213
resolved "https://packages.atlassian.com/api/npm/npm-remote/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
91589214
integrity sha1-rhbxZE2HPsrYQ7AwexQzYtTEIXI=
91599215

9216+
shelljs@^0.8.4:
9217+
version "0.8.4"
9218+
resolved "https://packages.atlassian.com/api/npm/npm-remote/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2"
9219+
integrity sha1-3naE/ut2f4cWsyYHiooAh1iQ48I=
9220+
dependencies:
9221+
glob "^7.0.0"
9222+
interpret "^1.0.0"
9223+
rechoir "^0.6.2"
9224+
91609225
shellwords@^0.1.1:
91619226
version "0.1.1"
91629227
resolved "https://packages.atlassian.com/api/npm/npm-remote/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
@@ -10140,6 +10205,28 @@ typedarray@^0.0.6:
1014010205
resolved "https://packages.atlassian.com/api/npm/npm-remote/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1014110206
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1014210207

10208+
typedoc-default-themes@^0.11.4:
10209+
version "0.11.4"
10210+
resolved "https://packages.atlassian.com/api/npm/npm-remote/typedoc-default-themes/-/typedoc-default-themes-0.11.4.tgz#1bc55b7c8d1132844616ff6f570e1e2cd0eb7343"
10211+
integrity sha1-G8VbfI0RMoRGFv9vVw4eLNDrc0M=
10212+
10213+
typedoc@^0.19.2:
10214+
version "0.19.2"
10215+
resolved "https://packages.atlassian.com/api/npm/npm-remote/typedoc/-/typedoc-0.19.2.tgz#842a63a581f4920f76b0346bb80eb2a49afc2c28"
10216+
integrity sha1-hCpjpYH0kg92sDRruA6ypJr8LCg=
10217+
dependencies:
10218+
fs-extra "^9.0.1"
10219+
handlebars "^4.7.6"
10220+
highlight.js "^10.2.0"
10221+
lodash "^4.17.20"
10222+
lunr "^2.3.9"
10223+
marked "^1.1.1"
10224+
minimatch "^3.0.0"
10225+
progress "^2.0.3"
10226+
semver "^7.3.2"
10227+
shelljs "^0.8.4"
10228+
typedoc-default-themes "^0.11.4"
10229+
1014310230
typescript@^4.0.3:
1014410231
version "4.0.3"
1014510232
resolved "https://packages.atlassian.com/api/npm/npm-remote/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5"
@@ -10221,6 +10308,11 @@ unique-string@^2.0.0:
1022110308
dependencies:
1022210309
crypto-random-string "^2.0.0"
1022310310

10311+
universalify@^1.0.0:
10312+
version "1.0.0"
10313+
resolved "https://packages.atlassian.com/api/npm/npm-remote/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d"
10314+
integrity sha1-thodoXPoQ1sv48Z9Kbmt+FlL0W0=
10315+
1022410316
[email protected], unpipe@~1.0.0:
1022510317
version "1.0.0"
1022610318
resolved "https://packages.atlassian.com/api/npm/npm-remote/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"

0 commit comments

Comments
 (0)