-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
44 lines (41 loc) · 949 Bytes
/
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
'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'),
rimraf: require('rimraf'),
browserSync: require('browser-sync').create(),
merge: require('merge-stream'),
buffer: require('vinyl-buffer'),
optPNG: require('imagemin-optipng'),
gp: require('gulp-load-plugins')()
};
$.path.task.forEach(function(taskPath) {
require(taskPath)();
});
$.gulp.task('default', $.gulp.series(
$.gulp.parallel(
'clean'
),
$.gulp.parallel(
'sass',
'pug',
'js:foundation',
'js:process',
'copy:image',
'copy:fonts',
'css:foundation',
'sprite:png',
'sprite:svg'
),
$.gulp.parallel(
'watch',
'serve'
)
));