forked from fourkitchens/emulsify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
executable file
·31 lines (26 loc) · 887 Bytes
/
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
'use strict';
/*************************************************************
* Variables
************************************************************/
// Modules
var requireDir = require('require-dir');
var _ = {
defaultsDeep: require('lodash/defaultsDeep'),
isObject: require('lodash/isObject'),
};
// Globals
global.config = {};
/*************************************************************
* Operations
************************************************************/
requireDir('./gulp/config'); // Binds config to the global config
try {
// Attempt to load in a local config overrides, allowing users to customize their use of the gulp tasks
var localConfig = require('./local.gulp-config');
if (_.isObject(localConfig)) {
global.config = _.defaultsDeep(global.config, localConfig);
}
} catch (e) {
}
// Time to kick things off with tasks!
require('./gulp');