Anthony Debucquoy
58a4c87661
All checks were successful
Build and test backend / Build-backend (push) Successful in 2m13s
Build and test backend / Test-backend (push) Successful in 1m20s
deploy to production / deploy-frontend (push) Successful in 25s
deploy to production / deploy-backend (push) Successful in 2m18s
Build and test FrontEnd / Build-frontend (push) Successful in 24s
21 lines
372 B
Plaintext
21 lines
372 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)
|
|
}
|