build(clang-format): skip formatting of spec files until angular/clang-format#11 is fixed

otherwise checking format and reformatting takes 50seconds or more :-(
This commit is contained in:
Igor Minar 2015-06-06 15:06:42 -07:00
parent 72736a1b09
commit f3dd9b5b31
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ gulp.task('build/pubbuild.dart', pubbuild(gulp, gulpPlugins, {
// formatting // formatting
function doCheckFormat() { function doCheckFormat() {
return gulp.src(['Brocfile*.js', 'modules/**/*.ts', 'tools/**/*.ts', '!**/typings/**/*.d.ts']) return gulp.src(['modules/**/*.ts', 'tools/**/*.ts', '!**/typings/**/*.d.ts',
'!**/*.spec.ts', '!**/*_spec.ts' /* angular/clang-format#/11 */])
.pipe(format.checkFormat('file')); .pipe(format.checkFormat('file'));
} }