using npm run commands for building angular application (supports pre steps).

Automatically embed the application version in the UI.
This commit is contained in:
Jason Kulatunga
2022-05-26 22:37:45 -07:00
parent 5dbfad68ad
commit d93d24b52d
9 changed files with 45 additions and 6 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ The frontend is written in Angular. If you're working on the frontend and can us
```bash
cd webapp/frontend
npm install
ng serve --deploy-url="/web/" --base-href="/web/" --port 4200
npm run start -- --deploy-url="/web/" --base-href="/web/" --port 4200
```
3. open your browser and visit [http://localhost:4200/web](http://localhost:4200/web)
@@ -95,7 +95,7 @@ you'll need to follow the steps below:
```bash
cd webapp/frontend
npm install
ng build --watch --output-path=../../dist --prod
npm run build:prod -- --watch --output-path=../../dist
# Note: if you do not add `--prod` flag, app will display mocked data for api calls.
```
6. start the scrutiny web server