var src = 'src';
var dest = 'www';

var tasks = {};

tasks.common = {};

// All files path
tasks.common.allHTMLFiles = src + '/*.html';
tasks.common.allJSFiles = ['src/{,*/,*/*/}*.js', '!src/lib{,/**}'];
tasks.common.scriptBase = src + '/{,*/}{,*/}*.js';
tasks.common.allSCSSFiles = src + '/scss/{,*/}*.scss';
tasks.common.allStaticFiles = [src + '/**', '!'+src+'/scss{,/**}'];
tasks.common.src = src + '/';
tasks.common.allFiles = src + '/**';

tasks.common.jsFilesHeader = ';(function () {\n\'use strict\';\n';
tasks.common.jsFilesFooter = '\n}())';

// Dest paths
tasks.common.destBase = dest;
tasks.common.destCSS = tasks.common.destBase + '/css/';

module.exports = tasks;

@@ -364,24 +364,51 @@
 /scss%7B,/**%7D'
+, '!'+src+'/%7B,*/,*/*/%7D*.js'
 %5D;%0Atasks.com

Update `config.allStaticFiles` ignoring JS files