@@ -103,7 +103,6 @@ tasks {
103
103
runInspections { mount(" ${rootDir} /gradle.properties" , " /data/project/gradle.properties" ) }
104
104
105
105
prepareSandbox() {
106
- dependsOn(" buildNxls" )
107
106
from(nxlsRoot) {
108
107
include(" **/*.js" )
109
108
include(" **/package.json" )
@@ -115,7 +114,14 @@ tasks {
115
114
exec {
116
115
logger.warn(" rootproject ${rootProject.name} " )
117
116
logger.warn(" Working dir: $workingDir " )
118
- commandLine = buildCommands() + " npx nx run intellij:install-nxls-deps"
117
+ logger.warn(" Working dir: $destinationDir " )
118
+
119
+ workingDir =
120
+ File (
121
+ destinationDir,
122
+ rootProject.name + " /nxls" ,
123
+ )
124
+ commandLine = buildCommands() + " npm install --force"
119
125
}
120
126
}
121
127
}
@@ -203,37 +209,13 @@ tasks {
203
209
}
204
210
}
205
211
206
- tasks.register<Exec >(" buildNxls" ) {
207
- commandLine =
208
- if (System .getenv(" IDEA_DEBUG" ) == " true" ) {
209
- buildCommands() + " npx nx run nxls:build:debug"
210
- } else {
211
- buildCommands() + " npx nx run nxls:build"
212
- }
213
- workingDir = rootDir
214
- }
215
-
216
- tasks.register<Exec >(" buildGenerateUi" ) {
217
- commandLine = buildCommands() + " npx nx run generate-ui:build:production-intellij"
218
- workingDir = rootDir
219
- }
220
-
221
- tasks.register<Exec >(" buildGenerateUiV2" ) {
222
- commandLine = buildCommands() + " npx nx run generate-ui-v2:build"
223
- workingDir = rootDir
224
- }
225
-
226
212
tasks.register<Copy >(" copyGenerateUiArtifacts" ) {
227
- dependsOn(" buildGenerateUi" )
228
-
229
213
from(" ${rootDir} /dist/apps/generate-ui" )
230
214
include(" *.js" , " *.css" )
231
215
into(" ${buildDir} /resources/main/generate_ui" )
232
216
}
233
217
234
218
tasks.register<Copy >(" copyGenerateUiV2Artifacts" ) {
235
- dependsOn(" buildGenerateUiV2" )
236
-
237
219
from(" ${rootDir} /dist/apps/generate-ui-v2" )
238
220
include(" *.js" , " *.css" )
239
221
into(" ${buildDir} /resources/main/generate_ui_v2" )
0 commit comments