Skip to content

Commit bf64296

Browse files
Build docs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent b9cfb7c commit bf64296

File tree

3 files changed

+162
-10
lines changed

3 files changed

+162
-10
lines changed

.travis.yml

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

package-lock.json

Lines changed: 147 additions & 10 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",
@@ -32,6 +33,7 @@
3233
"@nextcloud/browserslist-config": "^1.0.0",
3334
"babel-jest": "^24.9.0",
3435
"jest": "^24.9.0",
36+
"typedoc": "^0.15.5",
3537
"typescript": "3.7.3"
3638
},
3739
"browserslist": [

0 commit comments

Comments
 (0)