Essayons de passer la page de log en react
This commit is contained in:
15
Makefile
15
Makefile
@@ -1,12 +1,23 @@
|
||||
APP_NAME=pmomusic
|
||||
|
||||
build:
|
||||
# Build Go app
|
||||
build: web
|
||||
go build -o bin/$(APP_NAME) ./cmd/$(APP_NAME)
|
||||
|
||||
# Build web frontend
|
||||
web:
|
||||
@ echo Building the Web app
|
||||
@ cd pmoapp/web && npm install && npm run build
|
||||
@ echo Web app built
|
||||
|
||||
# Run Go app
|
||||
run:
|
||||
go run ./cmd/$(APP_NAME)
|
||||
|
||||
# Clean Go binary and web build
|
||||
clean:
|
||||
rm -rf bin/
|
||||
rm -rf web/dist
|
||||
|
||||
all: build
|
||||
# Build everything
|
||||
all: build
|
||||
|
||||
Reference in New Issue
Block a user