generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
27 lines (21 loc) · 741 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
.PHONY: deploy clean bin install release tag
install:
yarn install
bin:
yarn build
deploy: clean bin
cp dist/main.js test/.obsidian/plugins/personal-assistant/
cp dist/manifest.json test/.obsidian/plugins/personal-assistant/
cp dist/manifest-beta.json test/.obsidian/plugins/personal-assistant/
cp dist/styles.css test/.obsidian/plugins/personal-assistant/
clean:
rm -rf test/.obsidian/plugins/personal-assistant/main.js
rm -rf test/.obsidian/plugins/personal-assistant/manifest.json
rm -rf test/.obsidian/plugins/personal-assistant/manifest-beta.json
rm -rf test/.obsidian/plugins/personal-assistant/styles.css
release:
yarn version
@echo "CHANGELOG.md needs to be updated"
tag:
git tag -a `node tag.mjs`
git push --tags