-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BUILD_TAG ?= latest
run-dev:
VITE_GIT_TAG=${BUILD_TAG} \
VITE_GIT_REMOTE=$(shell git config --get remote.origin.url) \
VITE_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
VITE_GIT_REVISION=$(shell git rev-parse --short HEAD) \
yarn dev
run-build:
VITE_GIT_TAG=${BUILD_TAG} \
VITE_GIT_REMOTE=$(shell git config --get remote.origin.url) \
VITE_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
VITE_GIT_REVISION=$(shell git rev-parse --short HEAD) \
yarn build
run-build-zoomland:
VITE_GIT_TAG=${BUILD_TAG} \
VITE_GIT_REMOTE=$(shell git config --get remote.origin.url) \
VITE_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
VITE_GIT_REVISION=$(shell git rev-parse --short HEAD) \
rm -rf dist/* && \
yarn build-zoomland
run-build-netlify:
VITE_GIT_TAG=${BUILD_TAG} \
VITE_GIT_REMOTE=$(shell git config --get remote.origin.url) \
VITE_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
VITE_GIT_REVISION=$(shell git rev-parse --short HEAD) \
yarn build && \
netlify deploy --alias=${BUILD_TAG} --dir=dist
run-deploy-netlify:
netlify deploy --dir=dist --prod