|
@ -36,11 +36,15 @@ catch(error) { |
|
|
if(!userConfig) { |
|
|
if(!userConfig) { |
|
|
// No semantic.json file use tasks/config/defaults.js
|
|
|
// No semantic.json file use tasks/config/defaults.js
|
|
|
console.error('Using default values for gulp'); |
|
|
console.error('Using default values for gulp'); |
|
|
|
|
|
console.log('start defaults' , defaults); |
|
|
userConfig = defaults; |
|
|
userConfig = defaults; |
|
|
|
|
|
console.log('end defaults' , defaults); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
// extend defaults using shallow copy
|
|
|
// extend defaults using shallow copy
|
|
|
|
|
|
console.log('start extend' , defaults); |
|
|
userConfig = extend(false, {}, defaults, userConfig); |
|
|
userConfig = extend(false, {}, defaults, userConfig); |
|
|
|
|
|
console.log('end extend' , defaults); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +53,9 @@ else { |
|
|
*******************************/ |
|
|
*******************************/ |
|
|
|
|
|
|
|
|
// adds additional derived values to config
|
|
|
// adds additional derived values to config
|
|
|
|
|
|
console.log('start derived' , defaults); |
|
|
userConfig = config.addDerivedValues(userConfig); |
|
|
userConfig = config.addDerivedValues(userConfig); |
|
|
|
|
|
console.log('end derived' , defaults); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************* |
|
|
/******************************* |
|
|