2022-03-30 23:35:22 +08:00
|
|
|
Make sourcemaps self-hosted
|
|
|
|
|
|
|
|
Normally source maps get removed as part of the build process so prevent that
|
|
|
|
from happening. Also avoid using the windows.net host since obviously we can
|
|
|
|
not host our source maps there and want them to be self-hosted even if we could.
|
|
|
|
|
|
|
|
To test try debugging/browsing the source of a build in a browser.
|
|
|
|
|
|
|
|
Index: code-server/lib/vscode/build/gulpfile.reh.js
|
|
|
|
===================================================================
|
|
|
|
--- code-server.orig/lib/vscode/build/gulpfile.reh.js
|
|
|
|
+++ code-server/lib/vscode/build/gulpfile.reh.js
|
2022-04-28 02:05:50 +08:00
|
|
|
@@ -189,8 +189,7 @@ function packageTask(type, platform, arc
|
2022-03-30 23:35:22 +08:00
|
|
|
|
|
|
|
const src = gulp.src(sourceFolderName + '/**', { base: '.' })
|
|
|
|
.pipe(rename(function (path) { path.dirname = path.dirname.replace(new RegExp('^' + sourceFolderName), 'out'); }))
|
|
|
|
- .pipe(util.setExecutableBit(['**/*.sh']))
|
|
|
|
- .pipe(filter(['**', '!**/*.js.map']));
|
|
|
|
+ .pipe(util.setExecutableBit(['**/*.sh']));
|
|
|
|
|
|
|
|
const workspaceExtensionPoints = ['debuggers', 'jsonValidation'];
|
|
|
|
const isUIExtension = (manifest) => {
|
2022-04-28 02:05:50 +08:00
|
|
|
@@ -229,9 +228,9 @@ function packageTask(type, platform, arc
|
2022-03-30 23:35:22 +08:00
|
|
|
.map(name => `.build/extensions/${name}/**`);
|
|
|
|
|
|
|
|
const extensions = gulp.src(extensionPaths, { base: '.build', dot: true });
|
|
|
|
- const extensionsCommonDependencies = gulp.src('.build/extensions/node_modules/**', { base: '.build', dot: true });
|
|
|
|
- const sources = es.merge(src, extensions, extensionsCommonDependencies)
|
|
|
|
+ const extensionsCommonDependencies = gulp.src('.build/extensions/node_modules/**', { base: '.build', dot: true })
|
|
|
|
.pipe(filter(['**', '!**/*.js.map'], { dot: true }));
|
|
|
|
+ const sources = es.merge(src, extensions, extensionsCommonDependencies);
|
|
|
|
|
|
|
|
let version = packageJson.version;
|
|
|
|
const quality = product.quality;
|
2022-04-28 02:05:50 +08:00
|
|
|
@@ -366,7 +365,7 @@ function tweakProductForServerWeb(produc
|
2022-03-30 23:35:22 +08:00
|
|
|
const minifyTask = task.define(`minify-vscode-${type}`, task.series(
|
|
|
|
optimizeTask,
|
|
|
|
util.rimraf(`out-vscode-${type}-min`),
|
|
|
|
- common.minifyTask(`out-vscode-${type}`, `https://ticino.blob.core.windows.net/sourcemaps/${commit}/core`)
|
|
|
|
+ common.minifyTask(`out-vscode-${type}`, '')
|
|
|
|
));
|
|
|
|
gulp.task(minifyTask);
|
|
|
|
|