-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
73 lines (70 loc) · 1.45 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
'use strict';
global.$ = {
package: require('./package.json'),
config: require('./gulp/config'),
path: {
task: require('./gulp/paths/tasks.js'),
jsFoundation: require('./gulp/paths/js.foundation.js'),
cssFoundation: require('./gulp/paths/css.foundation.js'),
app: require('./gulp/paths/app.js')
},
gulp: require('gulp'),
del: require('del'),
browserSync: require('browser-sync').create(),
gp: require('gulp-load-plugins')()
};
$.path.task.forEach(function (taskPath) {
require(taskPath)();
});
$.gulp.task('default', $.gulp.series(
'clean',
$.gulp.parallel(
'copy:image',
'copy:fonts',
'sprite:smith'
),
$.gulp.parallel(
'sass',
'pug',
'js:foundation',
'js:process',
'css:foundation'
),
$.gulp.parallel(
'watch',
'serve'
)
));
$.gulp.task('build', $.gulp.series(
'clean',
$.gulp.parallel(
'copy:image',
'copy:fonts',
'sprite:smith'
),
$.gulp.parallel(
'sass',
'pug',
'js:foundation',
'js:process',
'css:foundation'
)
));
$.gulp.task('host', $.gulp.series(
'clean',
'sass',
'pug',
'js:foundation',
'js:process',
'copy:image',
'copy:fonts',
'css:foundation',
'sprite:smith',
'host',
'mobile',
'desktop'
));
$.gulp.task('psi', $.gulp.series(
'mobile',
'desktop'
));