Skip to content

Commit

Permalink
Modify command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nseah21 committed Jul 2, 2023
1 parent 46745fa commit 6e99a7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ sourceSets {
}

val installFrontend = tasks.register<Exec>("installFrontend") {
setCommandLine("npm.cmd")
setCommandLine("cmd")

setWorkingDir("frontend/")
setArgs(listOf("ci"))
setArgs(listOf("/c", "npm", "ci", "--production", "false", "--loglevel", "info", "--progress", "true"))
}

val buildFrontend = tasks.register<Exec>("buildFrontend") {
setDependsOn(listOf(installFrontend))
setCommandLine("cmd")

setWorkingDir("frontend/")
setArgs(listOf("run", "devBuild"))
setArgs(listOf("/c", "npm", "run", "devbuild", "--production", "false", "--loglevel", "info", "--progress", "true"))
}

val zipReport = tasks.register<Zip>("zipReport") {
Expand Down Expand Up @@ -289,17 +289,17 @@ tasks.register<Exec>("cypress") {
setCommandLine("cmd")

setWorkingDir("frontend/cypress")
setArgs(listOf("run-script", "debug"))
setArgs(listOf("/c", "npm", "run-script", "debug", "--production", "false", "--loglevel", "info", "--progress", "true"))
}

val frontendTest = tasks.register<Exec>("frontendTest") {
setDependsOn(listOf(installCypress, serveTestReportInBackground))
setCommandLine("cmd")

setWorkingDir("frontend/cypress/")
setArgs(listOf("run-script", "tests"))
setArgs(listOf("/c", "npm", "run-script", "tests", "--production", "false", "--loglevel", "info", "--progress", "true"))
if (project.hasProperty("ci")) {
setArgs(listOf("run-script", "ci"))
setArgs(listOf("/c", "npm", "run-script", "ci", "--production", "false", "--loglevel", "info", "--progress", "true"))
}
}

Expand Down

0 comments on commit 6e99a7c

Please sign in to comment.