-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
51 lines (39 loc) · 1.06 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
/**
* --------------------------------------------------------------------------------------------
* TASKS LISTS
* --------------------------------------------------------------------------------------------
*/
/**
* List of tasks to run
* Each task should be the basename of the task's file
*/
let tasks = [
'vendors',
'styles',
'styleguide-styles',
'scripts',
'pages',
'images',
'fonts',
'sprites',
];
/**
* Local/Dev-only tasks
*/
let devOnlyTasks = [
// 'lint-styles',
'lint-scripts',
];
/**
* Staging/Prod-only tasks
*/
let prodOnlyTasks = [];
/**
* --------------------------------------------------------------------------------------------
* REGISTER GULP TASKS
* --------------------------------------------------------------------------------------------
*/
let { isLocal, isDevelopment, isStaging, isProduction, registerTasks } = require('gulp-tasks-preset');
tasks = isLocal || isDevelopment ? devOnlyTasks.concat(tasks) : tasks;
tasks = isStaging || isProduction ? prodOnlyTasks.concat(tasks) : tasks;
registerTasks(tasks);