File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change
1
+ import com.github.gradle.node.npm.task.NpmTask
1
2
import com.github.gradle.node.npm.task.NpxTask
2
3
3
4
plugins {
@@ -8,7 +9,7 @@ plugins {
8
9
}
9
10
10
11
group = " io.cjlee"
11
- version = " 0.2.9 "
12
+ version = " 0.2.10 "
12
13
13
14
repositories {
14
15
mavenCentral()
@@ -100,16 +101,14 @@ tasks {
100
101
commandLine(" sh" , " copy.sh" )
101
102
}
102
103
103
- register<NpxTask >(" npmInstall" ) {
104
+ npmInstall {
105
+
104
106
workingDir = file(" ../gitnote-gui" )
105
- command.set(" npm" )
106
- args.set(listOf (" install" ))
107
107
}
108
108
109
- register<NpxTask >(" buildGui" ) {
109
+ register<NpmTask >(" buildGui" ) {
110
110
dependsOn(" npmInstall" ) // Ensure npm is installed
111
111
workingDir = file(" ../gitnote-gui" ) // Set the working directory to your React project
112
- command.set(" npm" )
113
112
args.set(listOf (" run" , " build" )) // Command to build the React project
114
113
}
115
114
@@ -124,6 +123,6 @@ tasks {
124
123
node {
125
124
version = " 22.2.0"
126
125
npmVersion = " 10.7.0"
127
- download = true
128
- workDir = file(" ../gitnote-gui" )
126
+ download = ! useLocalGui
127
+ nodeProjectDir = file(" ../gitnote-gui" )
129
128
}
You can’t perform that action at this time.
0 commit comments