-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
56 lines (47 loc) · 1.17 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
/**
* Gulpfile
* Author: Alex McCabe
* Company: Kerve
* Description: This gulpfile is used to run tasks pertaining to
* the [PROJECT NAME] project.
* Resources: https://gist.github.com/webdesserts/5632955
*/
const gulp = require('gulp');
let tasks = require('./build/tasks');
/**
* Watch task
*/
gulp.task('watch', tasks.watch.watch);
gulp.task('reload', tasks.watch.reload);
/**
* CSS tasks
*/
gulp.task('scss', tasks.scss);
// gulp.task('clean:css', tasks.css.clean);
// gulp.task('minify:css',
// gulp.series('clean:css', 'css', tasks.css.minify)
// );
/**
* CSS tasks
*/
gulp.task('js', tasks.scripts);
// gulp.task('clean:js', tasks.js.clean);
// gulp.task('minify:js',
// gulp.series('clean:js', 'js', tasks.js.minify)
// );
/**
* Static file tasks
*/
gulp.task('fonts', tasks.fonts);
gulp.task('html', tasks.html);
gulp.task('images', tasks.images);
gulp.task('static', gulp.series('fonts', 'html', 'images'));
/**
* Build tasks
*/
gulp.task('build:dev', gulp.series('static', 'scss', 'js'));
gulp.task('build:production', gulp.series('js', 'scss', 'static'));
/**
* Default task
*/
gulp.task('default', gulp.series('build:dev', 'watch'));