aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkj_sh6042026-02-28 17:45:17 -0500
committerkj_sh6042026-02-28 17:45:17 -0500
commit1e3023a9caf3df18354e39c13beb8635e61ec578 (patch)
treec52260a139e87a5c328d767d03790d347f5bda49 /Makefile
parent9fa861bc19fdbc244d53e031006e34c4cd45eedc (diff)
refactor: Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..20be990
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+NAME := kijish
+DATEVER := $(shell date +%Y%m%d-%H%M)
+VERSION := 1.0.0-$(DATEVER)
+VSIX := $(NAME)-$(DATEVER).vsix
+
+.PHONY: all package install clean
+
+all: package
+
+package: update-version $(VSIX)
+
+update-version:
+ sed -i 's/"version": "[^"]*"/"version": "$(VERSION)"/' package.json
+
+$(VSIX): package.json themes/kijish-color-theme.json
+ npx --yes @vscode/vsce package --no-dependencies -o $(VSIX)
+
+install: $(VSIX)
+ code --install-extension $(VSIX)
+
+clean:
+ rm -f *.vsix