Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9ba7fca

Browse files
committed
NS Angular api ref build script
1 parent 9b3a3ba commit 9ba7fca

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed

‎build-docs.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
set -e
2+
3+
ENV="${ENV:-dev}"
4+
DIST_DIR="nativescript-angular/bin/dist"
5+
APIREF_DIR="$DIST_DIR/ng-api-reference"
6+
rm -rf "$APIREF_DIR"
7+
cd "nativescript-angular"
8+
npm install
9+
npm run typedoc

‎nativescript-angular/package.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"tsc-w": "tsc -p tsconfig.json -w",
3535
"ngc": "ngc -p tsconfig.json",
3636
"prepare": "npm run ngc",
37-
"version": "rm -rf package-lock.json && conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md"
37+
"version": "rm -rf package-lock.json && conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md",
38+
"typedoc": "typedoc --tsconfig \"./tsconfig.typedoc.json\" --out ./bin/dist/ng-api-reference --includeDeclarations --name \"NativeScript Angular\" --theme ./node_modules/nativescript-typedoc-theme --excludeExternals --externalPattern \"**/+(tns-core-modules|module|declarations).d.ts\""
3839
},
3940
"bin": {
4041
"update-app-ng-deps": "./bin/update-app-ng-deps"
@@ -73,6 +74,8 @@
7374
"tns-core-modules": "next",
7475
"tslint": "^5.5.0",
7576
"typescript": "~3.1.1",
76-
"zone.js": "^0.8.4"
77+
"zone.js": "^0.8.4",
78+
"nativescript-typedoc-theme": "git://github.com/NativeScript/nativescript-typedoc-theme.git#master",
79+
"typedoc": "^0.13.0"
7780
}
7881
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{"compilerOptions": {
2+
"target": "es5",
3+
"module": "commonjs",
4+
"moduleResolution": "node",
5+
"sourceMap": true,
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"noImplicitUseStrict": true,
9+
"noEmitHelpers": true,
10+
"declaration": true,
11+
"removeComments": false,
12+
"noEmitOnError": true,
13+
"noImplicitAny": false,
14+
"lib": [
15+
"dom",
16+
"es6",
17+
"es2015.iterable"
18+
],
19+
"baseUrl": ".",
20+
"paths": {
21+
"*": [
22+
"./node_modules/tns-core-modules/*",
23+
"./node_modules/*"
24+
]
25+
}
26+
},
27+
"angularCompilerOptions": {
28+
"genDir": ".",
29+
"skipMetadataEmit": false,
30+
"skipTemplateCodegen": true,
31+
"strictMetadataEmit": true
32+
},
33+
"exclude": [
34+
"./node_modules",
35+
"tns-core-modules/references.d.ts",
36+
"tns-core-modules/node_modules",
37+
"tns-core-modules/ui/frame/transition-definitions.android.d.ts",
38+
"./zone-js",
39+
"./index.ts",
40+
"./bin",
41+
"./index.d.ts",
42+
"./testing"
43+
]
44+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /