mirror of
https://github.com/aziis98/template-go-vitejs.git
synced 2026-10-06 13:04:50 +00:00
chore: Added setup and extracted npm variable in makefile
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
|
|
||||||
|
NPM = npm
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: build-frontend build-backend
|
all: build-frontend build-backend
|
||||||
|
|
||||||
|
.PHONY: setup
|
||||||
|
setup:
|
||||||
|
mkdir -p out/frontend
|
||||||
|
mkdir -p out/backend
|
||||||
|
|
||||||
.PHONY: build-frontend
|
.PHONY: build-frontend
|
||||||
build-frontend:
|
build-frontend:
|
||||||
npm run build
|
$(NPM) run build
|
||||||
|
|
||||||
.PHONY: build-backend
|
.PHONY: build-backend
|
||||||
build-backend:
|
build-backend:
|
||||||
|
|||||||
Reference in New Issue
Block a user