Skip to content

Commit 76c5cca

Browse files
Build docs
Signed-off-by: Christoph Wurst <[email protected]>
1 parent d431620 commit 76c5cca

File tree

3 files changed

+194
-3
lines changed

3 files changed

+194
-3
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@ node_js: node
33
branches:
44
only:
55
- master
6+
script:
7+
- npm run build
8+
- npm run test
9+
- npm run build:doc
10+
deploy:
11+
provider: pages
12+
skip-cleanup: true
13+
github-token: $GITHUB_TOKEN
14+
keep-history: true
15+
local-dir: dist/doc
16+
on:
17+
tags: true

package-lock.json

Lines changed: 180 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --source-maps && tsc --emitDeclarationOnly",
9+
"build:doc": "typedoc --out dist/doc lib && touch dist/doc/.nojekyll",
910
"check-types": "tsc",
1011
"dev": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --watch",
1112
"test": "jest",
@@ -35,6 +36,7 @@
3536
"babel-plugin-transform-class-properties": "6.24.1",
3637
"browserslist-config-nextcloud": "0.1.0",
3738
"jest": "^24.9.0",
39+
"typedoc": "^0.15.5",
3840
"typescript": "3.7.3"
3941
},
4042
"browserslist": [

0 commit comments

Comments
 (0)