-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
52 lines (43 loc) · 1009 Bytes
/
.justfile
File metadata and controls
52 lines (43 loc) · 1009 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
42
43
44
45
46
47
48
49
50
51
52
# 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 b := build
alias r := run
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
# Build the project
build:
@echo "Building..."
@pnpm build
# Run a package
run:
@echo "Running..."
@pnpm run start:dev
# 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 {} \;