-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
39 lines (31 loc) · 857 Bytes
/
justfile
File metadata and controls
39 lines (31 loc) · 857 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
# Justfile for commit CLI tool
# Default recipe
default: build
# Build the binary
build:
deno compile --allow-all --output ./dist/commit main.ts
# Install the binary to user's bin directory
install: build
mkdir -p ~/.local/bin
cp ./dist/commit ~/.local/bin/commit
chmod +x ~/.local/bin/commit
@echo "✅ commit installed to ~/.local/bin/commit"
@echo "Make sure ~/.local/bin is in your PATH"
# Install globally (requires sudo)
install-global: build
sudo cp ./dist/commit /usr/local/bin/commit
sudo chmod +x /usr/local/bin/commit
@echo "✅ commit installed globally to /usr/local/bin/commit"
# Clean build artifacts
clean:
rm -rf ./dist
# Development run
dev:
deno run --allow-all main.ts
# Run tests
test:
deno test --allow-all
# Check formatting and linting
check:
deno fmt --check
deno lint