Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Moreno <jomo@microsoft.com>2016-02-23 11:33:16 +0300
committerJoao Moreno <jomo@microsoft.com>2016-02-23 11:33:16 +0300
commitc6ae31a9ae071abd31e2f25060f7aa22a293959f (patch)
tree227b97358153138b027957de747a9fca27859068 /gulpfile.js
parent89b641e2696e8950a3f71555a1dab36618fbbb8d (diff)
make build fail on compile errors
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 28159b34305..81ed06e4de1 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -39,7 +39,7 @@ var tsOptions = {
sourceRoot: util.toFileUri(rootDir)
};
-function createCompile(build) {
+function createCompile(build, emitError) {
var opts = _.clone(tsOptions);
opts.inlineSources = !!build;
@@ -67,14 +67,14 @@ function createCompile(build) {
sourceRoot: tsOptions.sourceRoot
}))
.pipe(tsFilter.restore)
- .pipe(quiet ? es.through() : reporter());
+ .pipe(quiet ? es.through() : reporter.end(emitError));
return es.duplex(input, output);
};
}
function compileTask(out, build) {
- var compile = createCompile(build);
+ var compile = createCompile(build, true);
return function () {
var src = gulp.src('src/**', { base: 'src' });