Skip to content

Commit b80bea9

Browse files
Copilotjoaomoreno
andcommitted
Add vscode-transpile-* gulp targets for transpile-only builds
Create new gulp targets (vscode-transpile-{platform}-{arch}) that package transpiled sources without compilation/minification dependencies. These tasks: - Use 'out' directory (transpiled sources) instead of 'out-vscode-min' - Skip compilation, mangling, and minification steps - Only perform native extension compilation and packaging - Work with transpile-client and transpile-extensions tasks Updated workflow to use new tasks: - vscode-transpile-linux-x64 - vscode-transpile-darwin-arm64 - vscode-transpile-win32-x64 Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
1 parent 7560de0 commit b80bea9

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/oss-build-fast.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117117

118118
- name: Build package
119-
run: npm run gulp vscode-linux-$VSCODE_ARCH-min-ci
119+
run: npm run gulp vscode-transpile-linux-$VSCODE_ARCH
120120
env:
121121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122122

@@ -213,7 +213,7 @@ jobs:
213213
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214214

215215
- name: Build package
216-
run: npm run gulp vscode-darwin-$VSCODE_ARCH-min-ci
216+
run: npm run gulp vscode-transpile-darwin-$VSCODE_ARCH
217217
env:
218218
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
219219

@@ -322,7 +322,7 @@ jobs:
322322

323323
- name: Build package
324324
shell: pwsh
325-
run: npm run gulp vscode-win32-$env:VSCODE_ARCH-min-ci
325+
run: npm run gulp vscode-transpile-win32-$env:VSCODE_ARCH
326326
env:
327327
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
328328

build/gulpfile.vscode.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,31 @@ BUILD_TARGETS.forEach(buildTarget => {
548548
}
549549
});
550550

551+
// Transpile-only tasks for fast builds without minification
552+
BUILD_TARGETS.forEach(buildTarget => {
553+
const dashed = (str: string) => (str ? `-${str}` : ``);
554+
const platform = buildTarget.platform;
555+
const arch = buildTarget.arch;
556+
const opts = buildTarget.opts;
557+
558+
const sourceFolderName = 'out'; // Use transpiled output
559+
const destinationFolderName = `VSCode${dashed(platform)}${dashed(arch)}`;
560+
561+
const tasks = [
562+
compileNativeExtensionsBuildTask,
563+
util.rimraf(path.join(buildRoot, destinationFolderName)),
564+
packageTask(platform, arch, sourceFolderName, destinationFolderName, opts)
565+
];
566+
567+
if (platform === 'win32') {
568+
tasks.push(patchWin32DependenciesTask(destinationFolderName));
569+
}
570+
571+
const vscodeTranspileTask = task.define(`vscode-transpile${dashed(platform)}${dashed(arch)}`, task.series(...tasks));
572+
gulp.task(vscodeTranspileTask);
573+
});
574+
575+
551576
// #region nls
552577

553578
const innoSetupConfig: Record<string, { codePage: string; defaultInfo?: { name: string; id: string } }> = {

0 commit comments

Comments
 (0)