progress dev

This commit is contained in:
Debucquoy Anthony 2024-02-21 21:31:16 +01:00
parent 895ee63587
commit 02cefc7e08
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 30 additions and 0 deletions

View File

@ -29,6 +29,11 @@ dependencies {
testImplementation("org.testcontainers:postgresql") testImplementation("org.testcontainers:postgresql")
} }
tasks.register("run") {
dependsOn(tasks.bootRun)
}
tasks.withType<Test> { tasks.withType<Test> {
useJUnitPlatform() useJUnitPlatform()
} }

25
frontend/build.gradle.kts Normal file
View File

@ -0,0 +1,25 @@
import com.github.gradle.node.npm.task.NpmTask
plugins {
id("com.github.node-gradle.node") version "7.0.2"
}
tasks.register<NpmTask>("build") {
dependsOn(tasks.npmInstall)
args.set(listOf("run", "build"))
}
var dev = tasks.register<NpmTask>("dev") {
dependsOn(tasks.npmInstall)
args.set(listOf("run", "dev"))
}
tasks.register<NpmTask>("run") {
dependsOn(dev)
}
tasks.register<NpmTask>("test") {
dependsOn(tasks.npmInstall)
args.set(listOf("run", "test:unit"))
}