From 1cd848df557b940cdaba421493d5499337406f4c Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Mon, 8 Dec 2014 11:14:05 -0800 Subject: [PATCH] fix(build): analyze examples and benchmarks again --- gulpfile.js | 4 ++-- tools/build/dartanalyzer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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', {