-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
41 lines (32 loc) · 986 Bytes
/
justfile
File metadata and controls
41 lines (32 loc) · 986 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
33
34
35
36
37
38
39
40
41
# justfile for cc-plugins-vnz
# Run `just` to see available recipes
#
# Hook groups (all via prek):
# fmt → shfmt, justfmt (modify files)
# lint → shellcheck, json-validate, script-permissions (read-only)
# validate → validate-plugins (structure checks)
set quiet := true
# Don't echo recipe lines
# List available recipes
default:
just --list
# Install development dependencies (pre-commit hooks)
setup:
prek install
# Format code (shfmt, justfmt - modifies files)
fmt:
prek run shfmt --all-files
prek run justfmt --all-files
# Lint code (shellcheck, json, permissions - read-only)
lint:
prek run shellcheck --all-files
prek run json-validate --all-files
prek run script-permissions --all-files
# Validate plugin structure (version consistency, required files)
validate:
prek run validate-plugins --all-files
# Run all checks (what CI runs)
all:
prek run --all-files
# Alias: check = lint (for familiarity)
check: lint