-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
76 lines (53 loc) · 1.09 KB
/
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
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
PUBLISHER_NAME = MichaelCurrin
default: install
all: hooks install test build
h help:
@grep '^[a-z#]' Makefile
.PHONY: hooks
hooks:
cd .git/hooks && ln -s -f ../../hooks/pre-push pre-push
install:
npm install
outdated:
npm outdated
upgrade:
npm upgrade
# Upgrade vscode types package and use it to set the engine version.
upgrade-engine:
npm install @types/vscode@latest
VS_CODE_VERSION=$$(npm view @types/vscode version) && \
sed -i "s/\"vscode\": \"\^.*\"/\"vscode\": \"^$$VS_CODE_VERSION\"/" \
package.json package-lock.json
fmt:
npm run fmt:fix
l lint:
npm run lint:fix
fix: fmt lint
t test: fix
npm run cover
npm run cover:report
npm run cover:check
q test-quick:
npx tsc -p .
npm run test:unit
### Build
.PHONY: build
build:
npm run build
# Build then install in VS Code.
e ext:
npm run checks
npm run ext
### Deploy
login:
npx vsce login $(PUBLISHER_NAME)
# Increment tag, publish to Marketplace, then install globally.
publish-M:
npx vsce publish major
npm run ext
publish-m:
npx vsce publish minor
npm run ext
publish-b:
npx vsce publish patch
npm run ext