-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 791 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
JK = ./node_modules/.bin/jiek
FLAGS += --bundle
FLAGS += --loader:.html=copy
FLAGS += --loader:.json=copy
FLAGS += --outdir=./display
FLAGS += --target=chrome51
FLAGS += ./dev/index.html
FLAGS += ./dev/data.json
FLAGS += ./dev/main.ts
bootstrap:
@echo "Install dependiences"
corepack enable
pnpm install
build-lib:
@echo "Build library"
$(JK) build --noMin .
build-pub: bootstrap
@echo "Build publish"
@$(MAKE) build-lib && $(JK) prepublish && $(JK) publish -no-b && $(JK) postpublish
dev-server:
@echo "Start dev server"
./node_modules/.bin/esbuild $(FLAGS) --define:LIVE_RELOAD=true --watch --servedir=./display
build-server:
@echo "Build server"
./node_modules/.bin/esbuild $(FLAGS) --define:LIVE_RELOAD=false
lint:
@echo "Lint"
./node_modules/.bin/eslint --fix .