Skip to content

Commit 1d145bc

Browse files
committed
Update frontend build tasks and fix test execution not working issue.
1 parent 466a6ea commit 1d145bc

File tree

3 files changed

+718
-559
lines changed

3 files changed

+718
-559
lines changed

project/FrontendCommands.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
object FrontendCommands {
66
val dependencyInstall: String = "npm install"
7-
val test: String = "npm run test-no-watch"
7+
val test: String = "npm run test:ci"
88
val serve: String = "npm run start"
9-
val build: String = "npm run build-prod"
9+
val build: String = "npm run build:prod"
1010
}

ui/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
7-
"build": "ng build",
8-
"test": "ng test",
97
"lint": "ng lint",
108
"e2e": "ng e2e",
119
"start": "ng serve --open --proxy-config src/proxy.conf.js --host 0.0.0.0",
12-
"test-no-watch": "ng test --single-run",
13-
"build-dev": "ng build --progress --output-path ../public",
14-
"build-prod": "ng build --extract-css --progress --prod --aot --output-path ../public"
10+
"test": "ng test --watch",
11+
"test:ci": "ng test --watch=false --browsers ChromeHeadless",
12+
"test:coverage": "ng test --watch=true --code-coverage=true",
13+
"test:coverage:ci": "ng test --watch=false --code-coverage=true --browsers ChromeHeadless",
14+
"build:dev": "ng build --progress --output-path ../public",
15+
"build:prod": "ng build --progress --prod --output-path ../public"
1516
},
1617
"private": true,
1718
"dependencies": {

0 commit comments

Comments
 (0)