We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8921c84 commit 5a5d657Copy full SHA for 5a5d657
1 file changed
build.gradle
@@ -1,7 +1,7 @@
1
plugins {
2
id 'java'
3
id "io.freefair.lombok" version "8.0.1"
4
- id "com.github.node-gradle.node" version "5.0.0"
+ id "com.github.node-gradle.node" version "7.0.2"
5
id "run.halo.plugin.devtools" version "0.0.7"
6
}
7
@@ -31,13 +31,20 @@ node {
31
nodeProjectDir = file("${project.projectDir}")
32
33
34
-task buildFrontend(type: PnpmTask) {
+tasks.register('buildFrontend', PnpmTask) {
35
args = ['build:packages']
36
+ dependsOn('installDepsForUI')
37
+}
38
+
39
+tasks.register('installDepsForUI', PnpmTask) {
40
+ args = ['install']
41
42
43
build {
44
// build frontend before build
- tasks.getByName('compileJava').dependsOn('buildFrontend')
45
+ tasks.named('compileJava').configure {
46
+ dependsOn('buildFrontend')
47
+ }
48
49
50
halo {
0 commit comments