Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions build-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -e

ENV="${ENV:-dev}"
DIST_DIR="nativescript-angular/bin/dist"
APIREF_DIR="$DIST_DIR/ng-api-reference"
rm -rf "$APIREF_DIR"
cd "nativescript-angular"
npm install
npm run typedoc
7 changes: 5 additions & 2 deletions nativescript-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"tsc-w": "tsc -p tsconfig.json -w",
"ngc": "ngc -p tsconfig.json",
"prepare": "npm run ngc",
"version": "rm -rf package-lock.json && conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md"
"version": "rm -rf package-lock.json && conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md",
"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\""
},
"bin": {
"update-app-ng-deps": "./bin/update-app-ng-deps"
Expand Down Expand Up @@ -73,6 +74,8 @@
"tns-core-modules": "next",
"tslint": "^5.5.0",
"typescript": "~3.1.1",
"zone.js": "^0.8.4"
"zone.js": "^0.8.4",
"nativescript-typedoc-theme": "git://github.com/NativeScript/nativescript-typedoc-theme.git#master",
"typedoc": "^0.13.0"
}
}
61 changes: 61 additions & 0 deletions nativescript-angular/tsconfig.typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitUseStrict": true,
"noEmitHelpers": true,
"declaration": true,
"removeComments": false,
"noEmitOnError": true,
"noImplicitAny": false,
"lib": [
"dom",
"es6",
"es2015.iterable"
],
"baseUrl": ".",
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
]
}
},
"angularCompilerOptions": {
"genDir": ".",
"skipMetadataEmit": false,
"skipTemplateCodegen": true,
"strictMetadataEmit": true
},
"exclude": [
"./node_modules",
"tns-core-modules/references.d.ts",
"tns-core-modules/node_modules",
"tns-core-modules/ui/frame/transition-definitions.android.d.ts",
"./zone-js",
"./index.ts",
"./bin",
"./index.d.ts",
"./testing",
"./animations/index.ts",
"./animations/utils.ts",
"./app-host-view.ts",
"./common/utils.ts",
"./dom-adapter.ts",
"./file-system",
"./forms/index.ts",
"./forms/value-accessors/index.ts",
"./lang-facade.ts",
"./polyfills",
"./router/private-imports",
"./schema-registry.ts",
"./http-client/index.ts",
"./http/index.ts",
"./router/index.ts",
""

]
}