diff --git a/gulpfile.js b/gulpfile.js index 1d0b935156..9c85c7933f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -57,8 +57,8 @@ var CONFIG = { 'default': 'lib', // need a tmp folder as benchpress does not support // inplace generation of the benchmarks... - 'benchmark*/**': 'perf_tmp', - 'example*/**': 'web' + '**/benchmark*/**': 'perf_tmp', + '**/example*/**': 'web' }, deps: { js: [ diff --git a/tools/build/dartanalyzer.js b/tools/build/dartanalyzer.js index 4ba2130037..9ef5cc5cd5 100644 --- a/tools/build/dartanalyzer.js +++ b/tools/build/dartanalyzer.js @@ -12,7 +12,7 @@ module.exports = function(gulp, plugins, config) { var tempFile = '_analyzer.dart'; // analyze in parallel! return Q.all(dartModuleFolders.map(function(dir) { - var srcFiles = [].slice.call(glob.sync(util.filterByFile(config.srcFolderMapping, dir) + '/**/*.dart', { + var srcFiles = [].slice.call(glob.sync(util.filterByFile(config.srcFolderMapping, dir + '/pubspec.yaml') + '/**/*.dart', { cwd: dir })); var testFiles = [].slice.call(glob.sync('test/**/*_spec.dart', {