forked from NativeScript/docs-v7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NativeScript#1621 from NativeScript/ns_ui_docs_bui…
…ld_edit edit NS UI Docs build
- Loading branch information
Showing
10 changed files
with
75 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var gulp = require('gulp'); | ||
var typedoc = require('gulp-typedoc'); | ||
var run = require('gulp-run-command').default; | ||
|
||
gulp.task("snippet-mdinject", run('mdinject --root=./../../nativescript-ui-samples --docsroot=./../docs/ui/professional-ui-components --sourceext=".ts|.js|.xml|.css" --snippettitles="TypeScript|JavaScript|XML|CSS"')); | ||
gulp.task("snippet-mdinject-ng", run('mdinject --root=./../../nativescript-ui-samples-angular --docsroot=./../docs/ui/professional-ui-components --sourceext=".ts|.js|.xml|.css" --snippettitles="TypeScript|JavaScript|XML|CSS"')); | ||
|
||
gulp.task("ns-ui-api-ref-build", function () { | ||
return gulp | ||
.src(["./node_modules/nativescript-ui-listview/{index,angular/index,angular/*-directives}.d.ts", | ||
"./node_modules/nativescript-ui-autocomplete/{index,angular/index,angular/*-directives}.d.ts", | ||
"./node_modules/nativescript-ui-dataform/{index,angular/index,angular/*-directives}.d.ts", | ||
"./node_modules/nativescript-ui-chart/{index,angular/index,angular/*-directives}.d.ts", | ||
"./node_modules/nativescript-ui-calendar/{index,angular/index,angular/*-directives}.d.ts", | ||
"./node_modules/nativescript-ui-gauge/{index,angular/index,angular/*-directives}.d.ts", | ||
"./node_modules/nativescript-ui-sidedrawer/{index,angular/index,angular/*-directives}.d.ts"]) | ||
.pipe(typedoc({ | ||
// TypeScript options (see typescript docs) | ||
module: "commonjs", | ||
mode: "file", | ||
target: "es5", | ||
includeDeclarations: true, | ||
excludeExternals: true, | ||
|
||
// Output options (see typedoc docs) | ||
out: "./ns-ui-api-reference", | ||
// TypeDoc options (see typedoc docs) | ||
name: "Progress NativeScript UI API", | ||
ignoreCompilerErrors: true, | ||
theme: "./node_modules/nativescript-typedoc-theme", | ||
readme: "./README.md" | ||
})); | ||
}); | ||
|
||
gulp.task("default", gulp.series("snippet-mdinject", "snippet-mdinject-ng", "ns-ui-api-ref-build")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "nativescript-ui-build-environment", | ||
"version": "1.0.0", | ||
"author": "Progress AD", | ||
"dependencies": { | ||
"gulp": "4.0.0", | ||
"gulp-typedoc": "2.2.1", | ||
"markdown-snippet-injector": "^0.2.2", | ||
"gulp-run-command": "0.0.9", | ||
"nativescript-typedoc-theme": "git://github.com/NativeScript/nativescript-typedoc-theme.git#master", | ||
"typedoc": "0.14.2", | ||
"nativescript-ui-listview":"*", | ||
"nativescript-ui-autocomplete":"*", | ||
"nativescript-ui-dataform":"*", | ||
"nativescript-ui-chart":"*", | ||
"nativescript-ui-calendar":"*", | ||
"nativescript-ui-gauge":"*", | ||
"nativescript-ui-sidedrawer":"*" | ||
} | ||
} |