-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
39 lines (36 loc) · 1.07 KB
/
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
var gulp = require('gulp');
var jasmine = require('gulp-jasmine');
var exit = require('gulp-exit');
var rename = require('gulp-rename');
var gulpJsdoc2md = require('gulp-jsdoc-to-markdown');
gulp.task('test', () => {
gulp.src(['./tests/**/*-spec.js'])
.pipe(jasmine({
verbose: true,
timeout: 5000,
includeStackTrace: true
}))
.pipe(exit());
});
gulp.task('docs-demos', () => {
gulp.src(['./demos/**/app/**/*.js'])
.pipe(gulpJsdoc2md())
.on('error', err => {
gutil.log(gutil.colors.red('jsdoc2md failed'), err.message);
})
.pipe(rename((path) => {
path.extname = '.md';
}))
.pipe(gulp.dest('docs/demos'));
});
gulp.task('docs', ['docs-demos'], () => {
gulp.src(['./framework/**/*.js'])
.pipe(gulpJsdoc2md())
.on('error', err => {
gutil.log(gutil.colors.red('jsdoc2md failed'), err.message);
})
.pipe(rename((path) => {
path.extname = '.md';
}))
.pipe(gulp.dest('docs'));
});