forked from bleenco/ngx-uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
39 lines (37 loc) · 976 Bytes
/
gulpfile.js
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
28
29
30
31
32
33
34
35
36
37
38
39
const gulp = require('gulp');
const typedoc = require('gulp-typedoc');
const conventionalChangelog = require('gulp-conventional-changelog');
gulp.task('changelog', () => {
return gulp.src('CHANGELOG.md', {
buffer: false
})
.pipe(conventionalChangelog({
preset: 'angular',
releaseCount: 1
}, {
currentTag: require('./package.json').version
}))
.pipe(gulp.dest('./'));
});
gulp.task('docs', () => {
return gulp.src([
'index.ts',
'!node_modules/**/*'])
.pipe(typedoc({
name: 'ngx-uploader docs',
mode: 'file',
out: 'docs',
ignoreCompilerErrors: true,
experimentalDecorators: true,
emitDecoratorMetadata: true,
target: 'ES5',
moduleResolution: 'node',
preserveConstEnums: true,
stripInternal: true,
suppressExcessPropertyErrors: true,
suppressImplicitAnyIndexErrors: true,
module: 'commonjs',
ignoreCompilerErrors: true,
noLib: true
}));
});