mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-06 07:39:48 +01:00
Cleanup turbo repo caches
Cleanup turbo repo caches if a `clean` build is triggered since this is the expected behaviour. Committed-by: Thomas Zerr <thomas.zerr@cloudogu.com>
This commit is contained in:
@@ -136,7 +136,7 @@ yarn_install {
|
||||
}
|
||||
|
||||
task build {
|
||||
dependsOn 'check', 'bundle'
|
||||
dependsOn 'check', 'bundle', 'cleanTurboRepo'
|
||||
}
|
||||
|
||||
task bundle(type: YarnTask) {
|
||||
@@ -202,6 +202,14 @@ task publish(type: YarnTask) {
|
||||
dependsOn 'yarn_install'
|
||||
}
|
||||
|
||||
task cleanTurboRepo(type: YarnTask) {
|
||||
doFirst {
|
||||
if (project.gradle.startParameter.taskNames.contains "clean") {
|
||||
args = ['turbo', 'run', 'build', '--force']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task cleanUpAfterPublishing {
|
||||
doLast {
|
||||
if (npmrc.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user