-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
33 lines (25 loc) · 783 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
# Needed SHELL since I'm using zsh
SHELL := /bin/bash
.PHONY: help
.PHONY: update
update: ## Update all dependencies
npm update
.PHONY: install
install: ## Install npm package
npm install
.PHONY: ls
ls: ## Lists all the files that will be published
vsce ls
.PHONY: package
package: install update-vsce ls ## Package extension for publication
vsce package
.PHONY: update-vsce
update-vsce: ## Update vsce extension manager
npm update @vscode/vsce
.PHONY: publish
publish: update-vsce ls install package ## Publish on VSCode Marketplace
vsce publish
help: ## This help message
@echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)"
clean: ## Clean up build artifacts
rm -rf *.vsix