forked from lensapp/lens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 752 Bytes
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
ifeq ($(OS),Windows_NT)
DETECTED_OS := Windows
else
DETECTED_OS := $(shell uname)
endif
.PHONY: dev build test clean
dev: app-deps dashboard-deps
yarn dev
test: test-app test-dashboard
lint:
yarn lint
test-app:
yarn test
deps: app-deps dashboard-deps
app-deps:
yarn install --frozen-lockfile
build: build-dashboard app-deps
yarn install
ifeq "$(DETECTED_OS)" "Windows"
yarn dist:win
else
yarn dist
endif
dashboard-deps:
cd dashboard && yarn install --frozen-lockfile
clean-dashboard:
rm -rf dashboard/build/ && rm -rf static/build/client
test-dashboard: dashboard-deps
cd dashboard && yarn test
build-dashboard: dashboard-deps clean-dashboard
export NODE_ENV=production
cd dashboard && yarn build
clean:
rm -rf dist/*