💄 build files

pull/70477/head
Benjamin Pasero 2019-03-14 12:25:42 +01:00
parent 1b66cd7fb7
commit cb71a9f7f8
3 changed files with 14 additions and 11 deletions

View File

@ -5,13 +5,15 @@
exports.base = [{
name: 'vs/base/common/worker/simpleWorker',
include: [ 'vs/editor/common/services/editorSimpleWorker' ],
prepend: [ 'vs/loader.js' ],
append: [ 'vs/base/worker/workerMain' ],
include: ['vs/editor/common/services/editorSimpleWorker'],
prepend: ['vs/loader.js'],
append: ['vs/base/worker/workerMain'],
dest: 'vs/base/worker/workerMain.js'
}];
//@ts-ignore review
exports.workbench = require('./vs/workbench/buildfile').collectModules(['vs/workbench/workbench.main']);
exports.workbenchNodeless = require('./vs/workbench/buildfile').collectModules(['vs/workbench/workbench.nodeless.main']);
exports.code = require('./vs/code/buildfile').collectModules();
exports.entrypoint = function (name) {

View File

@ -5,8 +5,9 @@
'use strict';
function createModuleDescription(name, exclude) {
var result = {};
var excludes = ['vs/css', 'vs/nls'];
const result = {};
let excludes = ['vs/css', 'vs/nls'];
result.name = name;
if (Array.isArray(exclude) && exclude.length > 0) {
excludes = excludes.concat(exclude);

View File

@ -5,18 +5,20 @@
'use strict';
function createModuleDescription(name, exclude) {
var result = {};
var excludes = ['vs/css', 'vs/nls'];
const result = {};
let excludes = ['vs/css', 'vs/nls'];
result.name = name;
if (Array.isArray(exclude) && exclude.length > 0) {
excludes = excludes.concat(exclude);
}
result.exclude = excludes;
return result;
}
exports.collectModules = function () {
var modules = [
return [
createModuleDescription('vs/workbench/contrib/output/common/outputLinkComputer', ['vs/base/common/worker/simpleWorker', 'vs/editor/common/services/editorSimpleWorker']),
createModuleDescription('vs/workbench/contrib/debug/node/telemetryApp', []),
@ -28,6 +30,4 @@ exports.collectModules = function () {
createModuleDescription('vs/workbench/services/extensions/node/extensionHostProcess', []),
];
return modules;
};