-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
51 lines (39 loc) · 1.05 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
/**
* MEH gulp
*/
'use strict';
const fs = require('fs-extra');
const path = require('path');
const gulp = require('gulp');
const browserSync = require('browser-sync');
const reload = browserSync.reload;
global.__buildConfig = {
src: path.join(__dirname, 'src'),
dest: path.join(__dirname, './')
};
const getImages = require('./src/build-tasks/images');
const getCss = require('./src/build-tasks/css');
const getJs = require('./src/build-tasks/javascript');
const distBuild = require('./src/build-tasks/dist');
gulp.task('images', done => {
return getImages.task(done);
});
gulp.task('styles', done => {
return getCss.task(done);
});
gulp.task('scripts', done => {
return getJs.task(done);
});
gulp.task('cssBuild', done => {
return distBuild.styles(done);
});
gulp.task('jsBuild', done => {
return distBuild.scripts(done);
});
gulp.task('dist', done => {
return gulp.series(['cssBuild', 'jsBuild'])(done);
});
// Build production files, the default task
gulp.task('default', done => {
return gulp.series(['images', 'styles', 'scripts', 'dist'])(done);
});