-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 920 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
48
# --------------------------------#
# "make" command
# --------------------------------#
-include ./make/text.mk
-include ./make/help.mk
-include ./make/url.mk
.SILENT:
.PHONY: build
## Setup - Install dependencies
install:
npm install
install@integration:
npm install --color=always --no-progress --no-audit --no-fund
## Setup - Update dependencies
update:
npm update
## Serve - Serve the whole app
serve: export APP_RUNTIME_ENV ?= development
serve:
npx vite --host=mache.ela.ooo --port=63286
## Build - Build
build: export APP_RUNTIME_ENV ?= development
build:
npx tsc && npx vite build
## Tests - Lint
lint: lint.eslint lint.tsc
lint.eslint:
npx eslint . --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 0
lint.tsc:
npx tsc --noemit
lint@integration: lint.eslint@integration lint.tsc@integration
lint.eslint@integration:
npx eslint ./
lint.tsc@integration:
npx tsc --noemit