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 install && \
npm run build && \ npm run build
cd frontend && \
frontend:
cd frontend && \
npm install && \ npm install && \
npm run build npm run build
all: backend frontend

View file

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