-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpfile.js
More file actions
45 lines (34 loc) · 825 Bytes
/
Copy pathgulpfile.js
File metadata and controls
45 lines (34 loc) · 825 Bytes
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
'use strict';
var gulp = require('../.').create({repl: true});
function rand () {
return Math.floor((1000 - 100) * Math.random());
}
gulp.task('cssmin', ['autoprefixer'], function (next) {
setTimeout(next, rand());
});
gulp.task('autoprefixer', function (next) {
setTimeout(next, rand());
});
gulp.task('less :src :dest', function (next) {
return gulp.src(this.params.src)
.pipe()
setTimeout(next, rand());
});
gulp.task('less', function (next) {
setTimeout(next, rand());
});
gulp.task('serve', function (next) {
setTimeout(next, rand());
});
gulp.task('watch', function (next) {
setTimeout(next, rand());
});
gulp.task('webpack', function (next) {
setTimeout(next, rand());
});
gulp.task('default',
gulp.series(
gulp.parallel('less', 'webpack'),
'cssmin', 'serve', 'watch'
)
);