-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (43 loc) · 1.19 KB
/
Copy pathjustfile
File metadata and controls
52 lines (43 loc) · 1.19 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
# Displays available recipes by running `just -l`.
setup:
#!/usr/bin/env bash
just -l
# Install bun for TypeScript and Rust stuff for scripts
install:
#!/usr/bin/env bash
echo "RUN: just install"
(
set -euo pipefail
source scripts/bashlib.sh # deps: which_ok
if ! which_ok bun ; then
# Install bun
curl -fsSL https://bun.sh/install | bash
else
log_success "bun is installed"
fi
if ! which_ok cargo ; then
# Install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup component add clippy
else
log_success "cargo (Rust) is installed"
fi
bun install
(cd mdtoc; bun install)
)
alias i := install
# Format with prettier
fmt:
bun run prettier --write .
# Sync repo ai-skills into ~/.cursor/skills. Flags: --force, --dry-run
skills-pull *args:
#!/usr/bin/env bash
bash scripts/skills-pull.sh {{args}}
# Sync ~/.cursor/skills into repo ai-skills. Flags: --force, --dry-run
skills-push *args:
#!/usr/bin/env bash
bash scripts/skills-push.sh {{args}}
# Show the diff between repo ai-skills and ~/.cursor/skills
skills-diff *args:
#!/usr/bin/env bash
bash scripts/skills-diff.sh {{args}}