aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/build.docs.ts
diff options
context:
space:
mode:
authorAlex Tatiyants <atatiyan@gmail.com>2016-01-03 17:17:48 -0800
committerAlex Tatiyants <atatiyan@gmail.com>2016-01-03 17:17:48 -0800
commit5310ac7d8eb1838a6297117bc7f9fca70291f46a (patch)
tree28f54b184cb85f04e6d6720dd03258f3728fedde /tools/tasks/build.docs.ts
initial commit
Diffstat (limited to 'tools/tasks/build.docs.ts')
-rw-r--r--tools/tasks/build.docs.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/tasks/build.docs.ts b/tools/tasks/build.docs.ts
new file mode 100644
index 0000000..a464c67
--- /dev/null
+++ b/tools/tasks/build.docs.ts
@@ -0,0 +1,27 @@
+import {join} from 'path';
+import {APP_SRC, APP_TITLE, DOCS_DEST} from '../config';
+
+export = function buildDocs(gulp, plugins, option) {
+ return function() {
+
+ let src = [
+ join(APP_SRC, '**/*.ts'),
+ '!' + join(APP_SRC, '**/*_spec.ts')
+ ];
+
+ return gulp.src(src)
+ .pipe(plugins.typedoc({
+ // TypeScript options (see typescript docs)
+ module: 'commonjs',
+ target: 'es5',
+ includeDeclarations: true,
+ // Output options (see typedoc docs)
+ out: DOCS_DEST,
+ json: join(DOCS_DEST , 'data/docs.json' ),
+ name: APP_TITLE,
+ ignoreCompilerErrors: false,
+ experimentalDecorators: true,
+ version: true
+ }));
+ };
+}