Skip to content

Commit a6f19a3

Browse files
committed
deps: remove gulp and other vulnerable dependencies
Signed-off-by: Fred Bricon <[email protected]>
1 parent f68c986 commit a6f19a3

File tree

20 files changed

+1122
-3075
lines changed

20 files changed

+1122
-3075
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,21 @@ jobs:
122122
xvfb-run --auto-servernum npm run test --silent
123123
continue-on-error: true
124124
- name: Clean tests
125-
run: npx gulp clean_test_folder
125+
run: npm run clean-test-folder
126126
- name: Prepare Lombok Support
127127
if: false
128128
run: |
129-
npx gulp download_lombok
129+
npm run download-lombok
130130
- name: Prepare Pre-Release
131131
if: ${{ github.event_name == 'schedule' || inputs.publishPreRelease == 'true' }}
132132
run: |
133-
npx gulp prepare_pre_release
133+
npm run prepare-pre-release
134134
echo "publishPreReleaseFlag=--pre-release" >> $GITHUB_ENV
135135
- name: Package vscode-java
136136
run: |
137137
platforms=("win32-x64" "linux-x64" "linux-arm64" "darwin-x64" "darwin-arm64")
138138
for platform in ${platforms[@]}; do
139-
npx gulp download_jre --target ${platform} --javaVersion 21
139+
npm run download-jre -- --target ${platform} --javaVersion 21
140140
vsce package ${{ env.publishPreReleaseFlag }} --target ${platform} -o java-${platform}-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
141141
done
142142
rm -rf jre/

.vscode/launch.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"DEBUG_VSCODE_JAVA":"true",
1414
"VSCODE_REDHAT_TELEMETRY_DEBUG":"true"
1515
},
16-
"stopOnEntry": false,
1716
"sourceMaps": true,
1817
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
1918
"preLaunchTask": "npm: watch",
@@ -28,7 +27,6 @@
2827
"request": "launch",
2928
"runtimeExecutable": "${execPath}",
3029
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
31-
"stopOnEntry": false,
3230
"sourceMaps": true,
3331
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
3432
"env": {
@@ -45,7 +43,6 @@
4543
"runtimeExecutable": "${execPath}",
4644
"debugWebviews": true,
4745
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
48-
"stopOnEntry": false,
4946
"sourceMaps": true,
5047
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
5148
"env": {
@@ -65,7 +62,6 @@
6562
"request": "launch",
6663
"runtimeExecutable": "${execPath}",
6764
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
68-
"stopOnEntry": false,
6965
"sourceMaps": true,
7066
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
7167
"env": {
@@ -81,7 +77,6 @@
8177
"request": "launch",
8278
"runtimeExecutable": "${execPath}",
8379
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
84-
"stopOnEntry": false,
8580
"sourceMaps": true,
8681
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
8782
"env": {
@@ -103,7 +98,6 @@
10398
"--extensionDevelopmentPath=${workspaceRoot}",
10499
"--extensionTestsPath=${workspaceRoot}/out/test/standard-mode-suite"
105100
],
106-
"stopOnEntry": false,
107101
"sourceMaps": true,
108102
"outFiles": ["${workspaceRoot}/out/**/*.js"],
109103
"preLaunchTask": "prepareStandardTest",
@@ -120,18 +114,17 @@
120114
"--extensionDevelopmentPath=${workspaceRoot}",
121115
"--extensionTestsPath=${workspaceRoot}/out/test/lightweight-mode-suite"
122116
],
123-
"stopOnEntry": false,
124117
"sourceMaps": true,
125118
"outFiles": ["${workspaceRoot}/out/**/*.js"],
126119
"preLaunchTask": "prepareLightweightTest",
127120
"postDebugTask": "cleanTestFolder"
128121
},
129122
{
130123
"args": [
131-
"${input:gulpTask}"
124+
"${input:scriptTask}"
132125
],
133-
"name": "Launch Gulp Task",
134-
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
126+
"name": "Launch Build Script",
127+
"program": "${workspaceFolder}/scripts/index.js",
135128
"request": "launch",
136129
"skipFiles": [
137130
"<node_internals>/**"
@@ -141,10 +134,10 @@
141134
],
142135
"inputs": [
143136
{
144-
"id": "gulpTask",
137+
"id": "scriptTask",
145138
"type": "promptString",
146-
"description": "Name of the Gulp task to execute",
147-
"default": "download_jre"
139+
"description": "Name of the build script to execute (e.g., download-jre, build-server, etc.)",
140+
"default": "download-jre"
148141
}
149142
]
150143
}

.vscode/tasks.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
}
1919
},
2020
{
21-
"type": "gulp",
22-
"label": "cleanTestFolder",
23-
"task": "clean_test_folder"
21+
"type": "npm",
22+
"script": "clean-test-folder",
23+
"label": "cleanTestFolder"
2424
},
2525
{
26-
"type": "gulp",
27-
"label": "generateStandardTestFolder",
28-
"task": "generate_standard_test_folder"
26+
"type": "npm",
27+
"script": "generate-standard-test-folder",
28+
"label": "generateStandardTestFolder"
2929
},
3030
{
31-
"type": "gulp",
32-
"label": "generateLightweightTestFolder",
33-
"task": "generate_lightweight_test_folder"
31+
"type": "npm",
32+
"script": "generate-lightweight-test-folder",
33+
"label": "generateLightweightTestFolder"
3434
},
3535
{
3636
"label": "prepareStandardTest",

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The following will be a start to finish guide to get the entire language server
5757
5. (**\*Optional**) Build a platform specific JRE:
5858

5959
```bash
60-
$ npx gulp download_jre
60+
$ npm run download-jre
6161
```
6262
You can also use the options `--target` and `--javaVersion` to build the specified JRE version for the specified target architecture.
6363

@@ -94,7 +94,7 @@ This will build and place the binaries under the `server` folder. Alternately yo
9494

9595
```bash
9696
$ cd ../vscode-java
97-
$ ./node_modules/.bin/gulp download_server
97+
$ npm run download-server
9898
```
9999
### Setting up the JDT Language Server
100100
Below are the details about how to set up the JDT Language Server in different IDEs. **Notice**: You only need set up it once in any of your preferred IDE.

0 commit comments

Comments
 (0)