-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
40 lines (33 loc) · 848 Bytes
/
.justfile
File metadata and controls
40 lines (33 loc) · 848 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
# Like GNU `make`, but `just` rustier.
# https://just.systems/
# run `just` from this directory to see available commands
alias i := install
alias u := update
alias p := pre_commit
alias c := clean
alias f := format
# Default command when 'just' is run without arguments
default:
@just --list
# Install the virtual environment and pre-commit hooks
install:
@echo "Installing..."
@pnpm install
@pre-commit install --install-hooks
update:
@echo "Updating..."
@pnpm taze
@pre-commit autoupdate
# Run pre-commit
pre_commit:
@echo "Running pre-commit..."
@pre-commit run -a
# Remove build artifacts and non-essential files
clean:
@echo "Cleaning..."
@find . -type d -name "node_modules" -exec rm -rf {} +
# Format the project
format:
@echo "Formatting..."
@pnpm format
@find . -name "*.nix" -type f -exec nixfmt {} \;