Skip to content

Commit f90b40f

Browse files
author
Benjamin Pasero
authored
debt - clean up buildfiles (microsoft#79914)
1 parent ba5ea8e commit f90b40f

5 files changed

Lines changed: 32 additions & 7 deletions

File tree

build/gulpfile.vscode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const vscodeEntryPoints = _.flatten([
5050
buildfile.entrypoint('vs/workbench/workbench.desktop.main'),
5151
buildfile.base,
5252
buildfile.serviceWorker,
53-
buildfile.workbench,
53+
buildfile.workbenchDesktop,
5454
buildfile.code
5555
]);
5656

build/gulpfile.vscode.web.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ const vscodeWebResources = [
5353

5454
const buildfile = require('../src/buildfile');
5555

56-
const vscodeWebEntryPoints = [
57-
buildfile.workbenchWeb,
56+
const vscodeWebEntryPoints = _.flatten([
57+
buildfile.entrypoint('vs/workbench/workbench.web.api'),
58+
buildfile.base,
5859
buildfile.serviceWorker,
5960
buildfile.workerExtensionHost,
6061
buildfile.keyboardMaps,
61-
buildfile.base
62-
];
62+
buildfile.workbenchWeb
63+
]);
6364

6465
const optimizeVSCodeWebTask = task.define('optimize-vscode-web', task.series(
6566
util.rimraf('out-vscode-web'),

src/buildfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ exports.serviceWorker = [{
2525

2626
exports.workerExtensionHost = [entrypoint('vs/workbench/services/extensions/worker/extensionHostWorker')];
2727

28-
exports.workbench = require('./vs/workbench/buildfile').collectModules(['vs/workbench/workbench.desktop.main']);
29-
exports.workbenchWeb = entrypoint('vs/workbench/workbench.web.api');
28+
exports.workbenchDesktop = require('./vs/workbench/buildfile.desktop').collectModules();
29+
exports.workbenchWeb = require('./vs/workbench/buildfile.web').collectModules();
3030

3131
exports.keyboardMaps = [
3232
entrypoint('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux'),

src/vs/workbench/buildfile.web.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
'use strict';
6+
7+
function createModuleDescription(name, exclude) {
8+
const result = {};
9+
10+
let excludes = ['vs/css', 'vs/nls'];
11+
result.name = name;
12+
if (Array.isArray(exclude) && exclude.length > 0) {
13+
excludes = excludes.concat(exclude);
14+
}
15+
result.exclude = excludes;
16+
17+
return result;
18+
}
19+
20+
exports.collectModules = function () {
21+
return [
22+
createModuleDescription('vs/workbench/contrib/output/common/outputLinkComputer', ['vs/base/common/worker/simpleWorker', 'vs/editor/common/services/editorSimpleWorker']),
23+
];
24+
};

0 commit comments

Comments
 (0)