From a0c6a74e24cce5b673c88cd67382ccbb063ea164 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Fri, 20 Nov 2015 09:09:16 +0100 Subject: [PATCH] quiet build --- build/gulpfile.plugins.js | 29 +++++++++++++++++------------ gulpfile.js | 2 +- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/build/gulpfile.plugins.js b/build/gulpfile.plugins.js index 4cbe961c0b3..52e00032f81 100644 --- a/build/gulpfile.plugins.js +++ b/build/gulpfile.plugins.js @@ -33,19 +33,24 @@ function getTSConfig(plugin) { var pluginRoot = path.join(extensionsPath, plugin.desc.name); + var options = null; + if (match[2]) { - return path.join(pluginRoot, match[2]); + options = require(path.join(pluginRoot, match[2])).compilerOptions; + } else { + options = { + noLib: true, + target: 'ES5', + module: 'amd', + declaration: false, + sourceMap: true, + rootDir: path.join(pluginRoot, 'src'), + sourceRoot: util.toFileUri(path.join(pluginRoot, 'src')) + }; } - return { - noLib: true, - target: 'ES5', - module: 'amd', - declaration: false, - sourceMap: true, - rootDir: path.join(pluginRoot, 'src'), - sourceRoot: util.toFileUri(path.join(pluginRoot, 'src')) - }; + options.verbose = !process.env['VSCODE_BUILD_QUIET']; + return options; } function noop() {} @@ -93,7 +98,7 @@ var tasks = readAllPlugins() } var options = getTSConfig(plugin); - + if (options) { var sources = 'extensions/' + name + '/src/**'; var deps = [ @@ -106,7 +111,7 @@ var tasks = readAllPlugins() var pipeline = (function () { var reporter = createReporter(); - var compilation = tsb.create(options, true, null, function (err) { reporter(err.toString()); }); + var compilation = tsb.create(options, null, null, function (err) { reporter(err.toString()); }); return function () { var input = es.through(); diff --git a/gulpfile.js b/gulpfile.js index 56afb14c3f0..734fb5f0388 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,7 +29,7 @@ var rootDir = path.join(__dirname, 'src'); var tsOptions = { target: 'ES5', module: 'amd', - verbose: process.env['VSCODE_BUILD_QUIET'] ? false : true, + verbose: !process.env['VSCODE_BUILD_QUIET'], preserveConstEnums: true, experimentalDecorators: true, sourceMap: true, -- GitLab