From d1c7b48583dfe37ffe6354a491e327fdef948a86 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 12 Feb 2015 15:41:40 -0500 Subject: [PATCH] Extend debug --- tasks/config/project/config.js | 6 ++++-- tasks/config/user.js | 8 -------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tasks/config/project/config.js b/tasks/config/project/config.js index 9e7b60fbd..e0a3da379 100644 --- a/tasks/config/project/config.js +++ b/tasks/config/project/config.js @@ -52,6 +52,7 @@ module.exports = { addDerivedValues: function(config) { config = config || defaults; + /*-------------- File Paths ---------------*/ @@ -60,6 +61,7 @@ module.exports = { configPath = this.getPath(), folder ; + console.log('start extend' , defaults.paths); // resolve source paths for(folder in config.paths.source) { @@ -76,9 +78,10 @@ module.exports = { config.paths.output[folder] = path.resolve(path.join(configPath, config.base, config.paths.output[folder])); } } + console.log('end extend' , defaults.paths); // resolve "clean" command path - config.paths.clean = path.join(configPath, config.base, config.paths.clean); + config.paths.clean = path.resolve( path.join(configPath, config.base, config.paths.clean) ); /*-------------- CSS URLs @@ -130,4 +133,3 @@ module.exports = { }; -console.log(defaults); \ No newline at end of file diff --git a/tasks/config/user.js b/tasks/config/user.js index 2fcd4ff0f..7188f8c7c 100644 --- a/tasks/config/user.js +++ b/tasks/config/user.js @@ -17,7 +17,6 @@ var userConfig ; -console.log('start config' , defaults); /******************************* User Config @@ -36,15 +35,11 @@ catch(error) { if(!userConfig) { // No semantic.json file use tasks/config/defaults.js console.error('Using default values for gulp'); - console.log('start defaults' , defaults); userConfig = defaults; - console.log('end defaults' , defaults); } else { // extend defaults using shallow copy - console.log('start extend' , defaults); userConfig = extend(false, {}, defaults, userConfig); - console.log('end extend' , defaults); } @@ -53,9 +48,7 @@ else { *******************************/ // adds additional derived values to config -console.log('start derived' , defaults); userConfig = config.addDerivedValues(userConfig); -console.log('end derived' , defaults); /******************************* @@ -64,4 +57,3 @@ console.log('end derived' , defaults); module.exports = userConfig; -console.log('end config' , defaults);