-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.babel.js
34 lines (23 loc) · 1.13 KB
/
gulpfile.babel.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
import del from 'del';
import gulp from 'gulp';
import connect from 'gulp-connect';
import buildJS from './gulp/buildJS.js';
import buildStatic from './gulp/buildStatic.js';
import changelog from './gulp/changelog.js';
import lint from './gulp/lint.js';
import {test, reportsTest} from './gulp/test.js';
gulp.task('build:js', buildJS);
gulp.task('build:js:watcher', () => gulp.watch(['index.js', 'src/**'], ['build:js']));
gulp.task('build:js:watch', ['build:js', 'build:js:watcher']);
gulp.task('build:static', buildStatic);
gulp.task('build', ['build:js', 'build:static']);
gulp.task('changelog', changelog);
gulp.task('clean', () => del(['dist/', 'dist-es5-module/', 'coverage/', 'mochawesome-reports/']));
gulp.task('dev', ['build:js:watch', 'test:watch', 'server']);
gulp.task('lint', lint);
gulp.task('server', () => connect.server({root: './', port: process.env.PORT || 3000}));
gulp.task('test:run', test);
gulp.task('test:watcher', () => gulp.watch(['./src/**', './test/**'], ['test:run']));
gulp.task('test:watch', ['test:run', 'test:watcher']);
gulp.task('test:reports', reportsTest);
gulp.task('test', ['lint', 'test:reports']);