提交 a0c6a74e 编写于 作者: J Joao Moreno

quiet build

上级 cc24139a
...@@ -33,19 +33,24 @@ function getTSConfig(plugin) { ...@@ -33,19 +33,24 @@ function getTSConfig(plugin) {
var pluginRoot = path.join(extensionsPath, plugin.desc.name); var pluginRoot = path.join(extensionsPath, plugin.desc.name);
var options = null;
if (match[2]) { 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 { options.verbose = !process.env['VSCODE_BUILD_QUIET'];
noLib: true, return options;
target: 'ES5',
module: 'amd',
declaration: false,
sourceMap: true,
rootDir: path.join(pluginRoot, 'src'),
sourceRoot: util.toFileUri(path.join(pluginRoot, 'src'))
};
} }
function noop() {} function noop() {}
...@@ -93,7 +98,7 @@ var tasks = readAllPlugins() ...@@ -93,7 +98,7 @@ var tasks = readAllPlugins()
} }
var options = getTSConfig(plugin); var options = getTSConfig(plugin);
if (options) { if (options) {
var sources = 'extensions/' + name + '/src/**'; var sources = 'extensions/' + name + '/src/**';
var deps = [ var deps = [
...@@ -106,7 +111,7 @@ var tasks = readAllPlugins() ...@@ -106,7 +111,7 @@ var tasks = readAllPlugins()
var pipeline = (function () { var pipeline = (function () {
var reporter = createReporter(); 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 () { return function () {
var input = es.through(); var input = es.through();
......
...@@ -29,7 +29,7 @@ var rootDir = path.join(__dirname, 'src'); ...@@ -29,7 +29,7 @@ var rootDir = path.join(__dirname, 'src');
var tsOptions = { var tsOptions = {
target: 'ES5', target: 'ES5',
module: 'amd', module: 'amd',
verbose: process.env['VSCODE_BUILD_QUIET'] ? false : true, verbose: !process.env['VSCODE_BUILD_QUIET'],
preserveConstEnums: true, preserveConstEnums: true,
experimentalDecorators: true, experimentalDecorators: true,
sourceMap: true, sourceMap: true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册