-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (33 loc) · 822 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
.DEFAULT_GOAL := help
REPOSITORY := $(notdir $(CURDIR))
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: dev
dev: ## Run dev server
dev: node_modules
npm run dev
dist/index.html: node_modules
npm run build
example-export.pdf: node_modules
npm run export
example-export/001.png: node_modules
npm run screenshot
node_modules: package.json package-lock.json
npm ci
.PHONY: install
install: ## Install packages
install: node_modules
.PHONY: upgrade
upgrade: ## Upgrades package.json
upgrade:
npx -p npm-check-updates -c "ncu -u"
npm update
.PHONY: publish
publish: ## Publish add-on
publish:
npm publish ./
.PHONY: clean
clean: ## Delete slide
clean:
rm -rf example-export example-export.pdf dist