-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 921 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (24 loc) · 921 Bytes
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
VAULT=${HOME}/notes
FILES=main.js manifest.json
clean:
-rm -rf *.js *.css
dev:
npm run dev
build:
npm run build
install: install-user-vault
install-user-vault: build # install plugin to user vault
mkdir -p $(VAULT)/.obsidian/plugins/neighbouring-files/
cp -rf $(FILES) $(VAULT)/.obsidian/plugins/neighbouring-files/
install-test-vault: build # install plugin to test vault
mkdir -p ./vault/.obsidian/plugins/neighbouring-files/
cp -rf $(FILES) ./vault/.obsidian/plugins/neighbouring-files/
changeset:
npx changeset
release:
test -z "$$(git status --porcelain)" || (echo "error: working tree not clean" >&2; exit 1)
npx changeset version
VERSION=$$(node -p "require('./package.json').version"); node version-bump.mjs "$$VERSION"
git add .changeset CHANGELOG.md manifest.json versions.json package.json
npm version --allow-same-version --force "$$VERSION" -m "release: %s"
git push && git push --tags