Commit Graph

86 Commits

Author SHA1 Message Date
Matt Bierner
fcfb37c8f8 Convert gulp files to ts
For #277526

Had to add a few ugly casts in difficult cases but mostly trying to add proper types
2025-11-21 15:38:55 -08:00
Matt Bierner
2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
Matt Bierner
c79433c9de Fix import and use clearer file name 2025-10-30 08:57:26 -07:00
Matt Bierner
883485b3b5 Pick up esbuild target from tsconfig files 2025-10-30 08:53:24 -07:00
João Moreno
f4c2700d45 cleanup any casts (#270371)
related to #269213
cc @mjbvz @jrieken
2025-10-08 14:05:31 +00:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Benjamin Pasero
1330a32f25 debt - use esbuild for CSS minification (#250820) 2025-06-06 03:04:01 -07:00
Alex Dima
b5e4fea275 Simplify buildfile around web workers 2025-03-21 10:32:35 +01:00
João Moreno
ce2c2f3c79 fix build (#238530)
* fix build

* fix build

* one more fix
2025-01-23 09:41:55 +01:00
Aman Karmani
e76c50f20e build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat

* build: rewrite imports for nodenext compat

* build: re-generate
2025-01-22 20:12:39 +01:00
Kevin Cui
d0d222dee4 fix: cannot open vscode when use vscode-win32-x64 in Windows (#233285)
When executing `npm run gulp vscode-win32-x64` on the Windows platform, the `bundle-vscode` task is triggered. However, this task does not handle the path issues well, resulting in the contents of the `bootstrap-window.js` file not being injected into `workbench.js` and `processExplorer.js`.

The reason why VSCode does not encounter this issue is that the code compilation (compile-build) is performed on a Linux machine, while the Windows machine only executes the application build (vscode-win32-x64-ci will not trigger `bundle-vscode`).

Signed-off-by: Kevin Cui <bh@bugs.cc>
2024-11-08 13:17:17 +00:00
Benjamin Pasero
89f039ff9f esm - fancyLog for bundle messages (#230638) 2024-10-06 09:27:18 -07:00
Benjamin Pasero
dc265add0b esm - drop need for manual concat (#230571) 2024-10-06 14:12:20 +02:00
Benjamin Pasero
9bd60d090a esm - better content mapper to address sourcemaps (#230476) 2024-10-04 15:34:21 +02:00
Benjamin Pasero
3b68a06818 esm - removal of CSS loader (#230206) 2024-10-01 19:24:18 +02:00
Benjamin Pasero
36b52aa938 esm - inline minimist (#230155)
* esm - inline `minimist`

* .

* .

* .
2024-09-30 13:13:42 -07:00
Benjamin Pasero
7d428d77a0 esm - remove build support for prepend 2024-09-27 08:05:22 +02:00
Benjamin Pasero
87f3486f5f esm - restore default header 2024-09-27 08:05:16 +02:00
Benjamin Pasero
c7caef00ea esm - make optimize.ts ESM only 2024-09-27 08:05:06 +02:00
Benjamin Pasero
b544846460 esm - further cleanup build scripts 2024-09-27 08:04:56 +02:00
Benjamin Pasero
c1952297c5 esm - cleanup editor worker build descriptors 2024-09-27 08:04:36 +02:00
Benjamin Pasero
332b89f198 esm - remove AMD build scripts, tests and variables 2024-09-27 08:04:01 +02:00
Benjamin Pasero
9784b5e1e6 esm - restore our copyright header in built files (#229751) 2024-09-25 21:48:02 +02:00
Benjamin Pasero
7d5cc34a5d esm - try to restore sourcemaps (fix microsoft/vscode-internalbacklog#5073) (#228303)
esm - try to restore sourcemaps
2024-09-11 21:14:53 -07:00
Benjamin Pasero
21135c81b5 esm - provide a bridge to AMD world (#227361) 2024-09-02 12:09:12 -07:00
Benjamin Pasero
6b924c5152 ESM merge to main (#227184)
Co-authored-by: Johannes Rieken <jrieken@microsoft.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2024-08-30 10:31:46 +02:00
Benjamin Pasero
34a756ae2e esm - worker cleanup (#226064) 2024-08-20 17:51:26 +02:00
Benjamin Pasero
3dc8c38c92 esm - some build polish (#225948) 2024-08-19 16:54:29 +02:00
Benjamin Pasero
0dea4804f4 esm - introduce VSCODE_BUILD_ESM variable (#225586) 2024-08-14 14:49:26 +02:00
Benjamin Pasero
2014f1ddb2 nls - removal of loader plugin (#219098) 2024-06-28 15:45:52 +02:00
Benjamin Pasero
f6f90e0163 Implement NLS without AMD loader (#214588) 2024-06-28 11:55:48 +02:00
Connor Peet
87780c04c8 eng: fix CSS tooling crashes watch task (#209278)
Get rid of the gulp-postcss plugin and just implement our own, I couldn't get it to work.

Fixes #207827
2024-04-01 20:15:25 +02:00
Benjamin Pasero
95917c1376 eng - throw if minified output contains non-ascii characters (#178590) 2023-03-30 09:26:11 +02:00
yiliang114
ef3dbb5e11 fix: typos 2023-03-10 20:02:01 +08:00
Alexandru Dima
0255bb0b03 If defined, use the runtime configured baseUrl (#176573) 2023-03-09 07:20:15 -07:00
Benjamin Pasero
9db57e76e9 Build: bundle / concat entry points (#161161)
* perf - concatenate windows main files

* Revert "Revert "Use `esbuild` to bundle some CommonJS main files (#160957)" (#161118)"

This reverts commit 84c46b71a5.

* build - exclude server main files

* build - make concat a task that runs like the others

* some renames

* Avoid overwriting the nodejs closure require

* Revert "build - exclude server main files"

This reverts commit 736516624e.

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-21 00:38:44 -07:00
Benjamin Pasero
84c46b71a5 Revert "Use esbuild to bundle some CommonJS main files (#160957)" (#161118)
This reverts commit 2179e52fb9.
2022-09-16 09:31:44 -07:00
Benjamin Pasero
2179e52fb9 Use esbuild to bundle some CommonJS main files (#160957)
* ensure node.js `require` is captured

* optimize `main.js` and `cli.js`

* cleanup

* leave out bundled files

* drop package.json from userdata paths

* fix web task

* fix editor distro

* inline version into `product.json`

* also bundle server

* t

* actually do server too

* Keep bundling nls in editor worker

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-16 05:24:23 -07:00
Matt Bierner
2a84b0fb6d Enable alwaysStrict for build scripts (#152778)
Turns on `alwaysStrict` and removes `'use strict';` from our `.ts` files
2022-06-21 19:00:43 +00:00
Alexandru Dima
0d160ac237 Fix bundling (#152389)
* Ensure stable order in bundled loader.js

* Avoid packaging build version of loader plugins
2022-06-16 21:05:10 +00:00
Alexandru Dima
9db5a3674e Bring the nls loader plugin into our sources (#152338) 2022-06-16 22:01:19 +02:00
Joao Moreno
35c70dc0a2 minify svgs
Related-to: #140159
2022-01-07 15:14:23 +01:00
Alex Dima
fb659f1542 Add IOptimizeTaskOpts.externalLoaderInfo 2021-10-16 11:43:36 +02:00
Logan Ramos
d2a8f91fb5 Update build scripts 2021-08-31 10:21:19 -04:00
Johannes Rieken
413b9019a6 configure esbuild with esnext. means no harm since TS already compiles with lower es2020, https://github.com/microsoft/vscode/issues/121144 2021-06-25 16:31:44 +02:00
João Moreno
9cba86888c update node version in optimize 2021-05-26 13:32:50 +02:00
João Moreno
cf4c4a0ece drop gulp-cssnano, use gulp-postcss 2021-01-22 10:49:30 +01:00
João Moreno
22b9a2b1e8 update esbuild 2021-01-06 14:19:19 +01:00
João Moreno
b99faeeb3c fix minification target 2021-01-05 16:46:54 +01:00
João Moreno
7449d86b89 use esbuild for minification 2021-01-05 11:54:18 +01:00