-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
37 lines (28 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
'use strict';
var startTime = new Date().getTime();
global.__base = __dirname + '/'
global.__gulp = __dirname + '/gulp/globals/'
var events = require('events'),
glob = require('glob-all'),
gulp = require('gulp'),
ops = require(__gulp + 'ops');
events.EventEmitter.defaultMaxListeners = 0; // Fixes "too many watchers" warning
glob.sync('gulp/tasks/*.+(js|coffee)').forEach(function(taskName) {
require('./' + taskName); // Pull in Task files
});
//----------------------------------------
// Global Tasks
//----------------------------------------
gulp.task('debug', function() {})
gulp.task('default', ['dev']);
gulp.task('dev', ops.watchTasks);
gulp.task('dev.clean', ops.mapTasks('clean'));
gulp.task('dev.build', ops.mapTasks('build'));
gulp.task('dev.rebuild', ops.mapTasks('rebuild'));
gulp.task('dev.watch', ops.mapTasks('watch', ops.watchTasks));
// gulp.task('prod', ops.tasks);
// gulp.task('prod.clean', ops.mapTasks('clean'));
// gulp.task('prod.build', ops.mapTasks('build'));
// gulp.task('prod.rebuild', ops.mapTasks('rebuild'));
// gulp.task('prod.watch', ops.mapTasks('watch'));
console.info('Gulp loaded in ' + ((new Date().getTime() - startTime) * 0.001) + ' seconds');