summaryrefslogtreecommitdiff
path: root/build-system/Makefile
blob: cf3c157d5669bdf5fbf7064da31245f9b9f185b4 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This Makefile has been placed in the public domain.

PORT = 8080

include ./build-system/config.mk

.PHONY: compile
compile:
	pnpm i -r --frozen-lockfile
	pnpm run compile

# .PHONY: dist
# dist:
# 	$(git-archive-all) --include ./configure taler-wallet-$(shell git describe --tags).tar.gz

# .PHONY: publish
# publish: compile
# 	pnpm publish -r --no-git-checks

# make documentation from docstrings
.PHONY: echo
echo:
	echo ${PORT}

.PHONY: typedoc
typedoc:
	pnpm run typedoc

.PHONY: clean
clean:
	pnpm run clean

.PHONY: build
build: 
	pnpm run build

.PHONY: build
build-single: 
	pnpm run build-single --filter merchant-backoffice
	@echo Build done, result at: 'packages/frontend/single/index.html'

.PHONY: submodules-update
submodules-update:
	git submodule update --recursive --remote

.PHONY: check
check: compile lint
	pnpm run check

.PHONY: dev
dev: compile
	pnpm run --filter merchant-backoffice dev

.PHONY: serve
serve: build
	pnpm run --filter merchant-backoffice serve

.PHONY: dev-ui
dev-ui: compile
	pnpm run --filter merchant-backoffice storybook

.PHONY: lint
lint:
	pnpm run lint

.PHONY: dist
dist: build
	(cd packages/frontend/build && zip -r - .) > merchant-backoffice.zip

.PHONY: install
install: build
	echo install -d ${prefix}
	for file in `find packages/frontend/build/ -type f`; do \
		install -m 644 -D $$file ${prefix}/$${file#packages/frontend/build/}; \
	done

.PHONY: install
install-view:
	pnpm run --filter merchant-backoffice build-storybook
	echo install -d ${prefix}
	for file in `find packages/frontend/storybook-static/ -type f`; do \
		install -m 644 -D $$file ${prefix}/$${file#packages/frontend/storybook-static/}; \
	done

.PHONY: i18n
i18n: 
	./build-translations.sh