1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}));
};
}
|