-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
50 lines (46 loc) · 1.1 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
/* eslint-disable no-undef */
'use strict';
global.$ = {
package: require('./package.json'),
config: require('./gulp/config'),
path: {
task: require('./gulp/paths/tasks.js'),
template: require('./gulp/paths/template.js'),
jsStock: require('./gulp/paths/js.stock.js'),
cssStock: require('./gulp/paths/css.stock.js'),
app: require('./gulp/paths/app.js')
},
gulp: require('gulp'),
rimraf: require('rimraf'),
browserSync: require('browser-sync').create(),
gp: require('gulp-load-plugins')(),
image: require('gulp-imagemin'),
csscomb: require('gulp-csscomb'),
ftp: require('gulp-ftp'),
gcmq: require('gulp-group-css-media-queries'),
fs: require('fs'),
through2: require('through2'),
emitty: require('emitty').setup('source/template', 'pug')
}
;
$.emitty.scan();
$.path.task.forEach(function ( taskPath ){
require(taskPath)();
});
$.gulp.task('default', $.gulp.series(
'clean',
'sprite.svg',
$.gulp.parallel(
'sass',
'pug',
'js.stock',
'js.process',
'copy.image',
'copy.fonts',
'css.stock'
),
$.gulp.parallel(
'watch',
'serve'
)
));