Skip to content

Commit 26a3a01

Browse files
Build doc
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent b4aa18e commit 26a3a01

3 files changed

Lines changed: 192 additions & 3 deletions

File tree

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ node_js: node
33
branches:
44
only:
55
- master
6+
- /^v\d++(\.\d+)?+(\.\d+)?+(\.\d+)?$/
67
script:
78
- npm run check-types
89
- npm run build
910
- npm run test
11+
- npm run build:doc
12+
deploy:
13+
provider: pages
14+
skip-cleanup: true
15+
github-token: $GITHUB_TOKEN
16+
keep-history: true
17+
local-dir: dist/doc
18+
on:
19+
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",
@@ -33,6 +34,7 @@
3334
"@nextcloud/typings": "^0.1.3",
3435
"babel-jest": "^24.9.0",
3536
"jest": "^24.9.0",
37+
"typedoc": "^0.15.5",
3638
"typescript": "3.7.3"
3739
},
3840
"browserslist": [

0 commit comments

Comments
 (0)