Skip to content

Commit

Permalink
Removes unnecessary logs -- Apply pattern for objects in specFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
carloshpds committed Dec 26, 2015
1 parent 9308c7c commit 5be022e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions dist/unit-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ module.exports = function(options) {
var additionalDeps = options.modulesData['unitTests'].addDeps || [];
var specFiles = options.specFiles || [];
var envFiles = {
all: options.tmp + '/serve/app/**/*.env.js',
dev: options.tmp + '/serve/app/**/*.dev.env.js',
prod: options.tmp + '/serve/app/**/*.prod.env.js',
found: []
all : options.tmp + '/serve/app/**/*.env.js',
dev : options.tmp + '/serve/app/**/*.dev.env.js',
prod : options.tmp + '/serve/app/**/*.prod.env.js',
found : []
};

var htmlFiles = [
Expand All @@ -36,7 +36,13 @@ module.exports = function(options) {
var srcFiles = [
options.tmp + '/serve/app/**/*.js'
].concat(specFiles.map(function(file) {
return '!' + file;
var pattern = '!' + file;

if(_.isObject(file) && file.pattern){
pattern = '!' + file.pattern;
}

return pattern;
}));

srcFiles.unshift(envFiles.all);
Expand All @@ -47,8 +53,6 @@ module.exports = function(options) {
srcFiles = srcFiles.concat(options.modulesData.scripts.devScripts);
}

console.log('srcFiles', srcFiles)

excludeFiles = excludeFiles.map(function(file) {
return '!' + file;
});
Expand Down

0 comments on commit 5be022e

Please sign in to comment.