Skip to content

Commit

Permalink
quiet build
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 20, 2015
1 parent cc24139 commit a0c6a74
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions build/gulpfile.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down Expand Up @@ -93,7 +98,7 @@ var tasks = readAllPlugins()
}

var options = getTSConfig(plugin);

if (options) {
var sources = 'extensions/' + name + '/src/**';
var deps = [
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a0c6a74

Please sign in to comment.