-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
38 lines (33 loc) · 987 Bytes
/
index.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
function gulpTask(name, gulp, config) {
gulp = gulp || require('gulp')
config = config || require('./lib/config')()
require('./gulp-tasks/' + name)(gulp, config)
}
module.exports = {
gulpTask: function (name, gulp, config) {
gulpTask(name, gulp, config)
},
gulpTasks: function (gulp, config) {
config = config || require('./lib/config')()
tasks = config.gulp.tasks || [
'drush',
"font-awesome",
"fonts",
'icons',
'sass',
'scripts',
'modernizr',
'assets',
'browser-sync',
'build',
'watch',
'default'
]
var excludeTasks = config.gulp.excludeTasks || []
tasks.forEach(function (task) {
if (excludeTasks.indexOf(task) === -1) {
gulpTask(task, gulp, config)
}
})
}
}