mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-15 15:41:46 +00:00
feat: add gradle config
This commit is contained in:
@@ -60,7 +60,13 @@ task buildFrontend(type: NpxTask) {
|
|||||||
args = ['build']
|
args = ['build']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task pnpmInstall (type: NpxTask) {
|
||||||
|
command = "pnpm"
|
||||||
|
args = ["install"]
|
||||||
|
}
|
||||||
|
|
||||||
build {
|
build {
|
||||||
// build frontend before build
|
// build frontend before build
|
||||||
tasks.getByName('compileJava').dependsOn('buildFrontend')
|
tasks.getByName('compileJava').dependsOn('buildFrontend')
|
||||||
|
tasks.getByName("buildFrontend").dependsOn("pnpmInstall")
|
||||||
}
|
}
|
Reference in New Issue
Block a user