-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
42 lines (33 loc) · 974 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
.DEFAULT_GOAL := help
HELP_SEPARATOR := @
PACKAGE_NAME := chrome-show-tab-numbers
PACKAGE_TARGETS := manifest.json background.js options.html options.js assets/icon128.png
.PHONY: help
help: ## Show help
@cat $(MAKEFILE_LIST) | \
grep -E '^[-a-z]+:.*##' | \
sed -e 's/:.*## /$(HELP_SEPARATOR)/' | \
column -t -s $(HELP_SEPARATOR)
.PHONY: lint
lint: ## Lint files
npm run lint
.PHONY: format
format: ## Format files
npm run format
.PHONY: format-check
format-check: ## Check if files are formatted
npm run format-check
.PHONY: update-major
update-major: ## Update the major version
scripts/update-version major
.PHONY: update-minor
update-minor: ## Update the minor version
scripts/update-version minor
.PHONY: update-patch
update-patch: ## Update the patch version
scripts/update-version patch
.PHONY: zip
zip: ## Build a zip file for upload
rm -f packages/$(PACKAGE_NAME).zip
zip packages/$(PACKAGE_NAME) $(PACKAGE_TARGETS)
open packages