-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (48 loc) · 1.29 KB
/
Makefile
File metadata and controls
60 lines (48 loc) · 1.29 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
UI_BASE_URL ?= https://localhost:8000
UI_PKG_INSTALL_NETWORK_TIMEOUT ?= 60000
.PHONY: all
all: deps lint test test-component build
SOURCES := $(shell find apps -type d \( -name node_modules \) -prune -o -print)
ROX_PRODUCT_BRANDING ?= $(shell $(MAKE) --quiet --no-print-directory -C .. product-branding)
export ROX_PRODUCT_BRANDING := $(ROX_PRODUCT_BRANDING)
deps: apps/platform/package.json apps/platform/package-lock.json
cd apps/platform && npm ci --prefer-offline --fetch-timeout=$(UI_PKG_INSTALL_NETWORK_TIMEOUT) --no-audit --no-fund $(UI_PKG_INSTALL_EXTRA_ARGS) && npm audit --omit=dev || true
@touch deps
.PHONY: printsrcs
printsrcs:
@echo "+ $@"
@echo "$(SOURCES)"
lint: deps $(SOURCES)
@echo "+ $@"
npm run lint
@touch lint
build: deps $(SOURCES)
@echo "+ $@"
npm run build
@touch build
.PHONY: start
start: deps
@echo "+ $@"
npm run start
.PHONY: test
test: deps $(SOURCES)
@echo "+ $@"
npm run test
.PHONY: test-component
test-component: deps $(SOURCES)
@echo "+ $@"
npm run test-component
.PHONY: test-e2e
test-e2e: deps $(SOURCES)
@echo "+ $@"
npm run test-e2e
# Uncomment this once the plugin is installed via the operator in CI
# npm run test-e2e:ocp
.PHONY: clean
clean:
@echo "+ $@"
npm run clean
rm -f deps
rm -f lint
rm -rf build
rm -rf node_modules apps/*/node_modules