Clyde/frontend/build.gradle.kts
Anthony Debucquoy fb6527afd5
All checks were successful
deploy to production / deploy-frontend (push) Successful in 24s
Build and test FrontEnd / Build (push) Successful in 22s
Build and test FrontEnd / Test (push) Successful in 22s
base of backend
Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com>
Reviewed-on: #29
Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
2024-02-23 12:00:36 +01:00

26 lines
476 B
Plaintext

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"))
}