generated from chrisgrieser/pseudometa-obsidian-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Justfile
40 lines (30 loc) · 1.1 KB
/
Justfile
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
set quiet := true
test_vault := "$HOME/Vaults/phd-data-analysis"
#───────────────────────────────────────────────────────────────────────────────
[macos]
build-and-reload:
#!/usr/bin/env zsh
node .esbuild.mjs
cp -f "main.js" "{{ test_vault }}/.obsidian/plugins/quadro/main.js"
vault_name=$(basename "{{ test_vault }}")
open "obsidian://open?vault=$vault_name"
# reload (INFO: requires registering the URI manually in a helper plugin)
plugin_id=$(grep '"id"' "./manifest.json" | cut -d'"' -f4)
open "obsidian://reload-plugin?id=$plugin_id&vault=$vault_name"
check-all:
zsh ./.githooks/pre-commit
check-tsc:
npx tsc --noEmit --skipLibCheck --strict && echo "Typescript OK"
release:
node .release.mjs
analyze:
node .esbuild.mjs analyze
init:
#!/usr/bin/env zsh
git config core.hooksPath .githooks
npm install
node .esbuild.mjs
update-deps:
#!/usr/bin/env zsh
npm update
node .esbuild.mjs