Split Makefile tasks into backend and frontend

This commit is contained in:
Fabio Manganiello 2025-02-28 01:56:20 +01:00
parent 962858c053
commit 1d8d748a0a
Signed by: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 15 additions and 8 deletions

View file

@ -1,6 +1,10 @@
all:
backend:
npm install && \
npm run build && \
cd frontend && \
npm run build
frontend:
cd frontend && \
npm install && \
npm run build
all: backend frontend

View file

@ -14,6 +14,12 @@ GPSTracker is a simple Webapp that consists of:
## Building the application
Requirements:
- `node`
- `typescript`
- `make`
```sh
make
```
@ -22,13 +28,10 @@ Or, if you want to build the backend and the frontend separately:
```sh
# Backend
npm install
npm run build
make backend
# Frontend
cd frontend
npm install
npm run build
make frontend
```
## Configuration