fix(build): Fail the build for certain TS errors.

This commit is contained in:
Martin Probst 2015-04-14 11:46:01 -07:00
parent ef6e0d8eb8
commit 2d09f84182
1 changed files with 6 additions and 4 deletions

View File

@ -570,13 +570,15 @@ gulp.task('build.dart', function(done) {
gulp.task('build.broccoli.tools', function() {
var tsResult = gulp.src('tools/broccoli/**/*.ts')
.pipe(tsc({ target: 'ES5', module: 'commonjs' }));
.pipe(tsc({target: 'ES5', module: 'commonjs'}))
.on('error', function() {
console.log("ERROR: Broccoli tools failed to build.");
process.exit(1);
});
return tsResult.js.pipe(gulp.dest('dist/broccoli'))
.on('end', function() {
var BroccoliBuilder = require('./dist/broccoli/broccoli_builder').BroccoliBuilder;
getBroccoli = function() {
return BroccoliBuilder;
};
getBroccoli = function() { return BroccoliBuilder; };
});
});