-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
50 lines (41 loc) · 1.03 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
40
41
42
43
44
45
46
47
48
49
50
'use strict';
/*!
* Collection
* https://github.com/kobezzza/Collection
*
* Released under the MIT license
* https://github.com/kobezzza/Collection/blob/master/LICENSE
*/
const
gulp = require('gulp');
require('sugar').extend();
require('./gulp/other');
require('./gulp/predefs');
require('./gulp/build');
require('./gulp/test');
gulp.task('default', gulp.parallel(
gulp.series(
gulp.parallel('bump', 'head'),
'build:test'
),
'yaspeller',
'npmignore'
));
gulp.task('node', gulp.parallel(
gulp.series(
gulp.parallel('bump', 'head'),
'build:test:node'
),
'yaspeller',
'npmignore'
));
gulp.task('watch', gulp.series('default', () => {
gulp.watch('./src/**/*.js', gulp.series('bump', 'build'));
gulp.watch('./*.md', gulp.series('yaspeller'));
gulp.watch('./.gitignore', gulp.series('npmignore'));
}));
gulp.task('watch:node', gulp.series('node', () => {
gulp.watch('./src/**/*.js', gulp.series('bump', 'build:node'));
gulp.watch('./*.md', gulp.series('yaspeller'));
gulp.watch('./.gitignore', gulp.series('npmignore'));
}));