forked from rust-lang/docs.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
45 lines (36 loc) · 1.25 KB
/
Justfile
File metadata and controls
45 lines (36 loc) · 1.25 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
# List available commands
_default:
just --list
sqlx-prepare ADDITIONAL_ARGS="":
cargo sqlx prepare \
--database-url $DOCSRS_DATABASE_URL \
--workspace {{ ADDITIONAL_ARGS }} \
-- --all-targets --all-features
sqlx-check:
just sqlx-prepare "--check"
lint:
cargo clippy --all-features --all-targets --workspace --locked -- -D warnings
lint-js:
deno run -A npm:eslint@9 static templates gui-tests eslint.config.js
# Initialize the docker compose database
[group('compose')]
compose-migrate:
docker compose run --build --rm cli database migrate
# Update last seen reference to the current index head, to only build newly published crates
[group('compose')]
compose-queue-head:
docker compose run --build --rm cli queue set-last-seen-reference --head
# Launch base docker services, ensuring the database is migrated
[group('compose')]
compose-up:
just compose-migrate
docker compose up --build -d
# Launch base docker services and registry watcher, ensuring the database is migrated
[group('compose')]
compose-up-watch:
just compose-migrate
docker compose --profile watch up --build -d
# Shutdown docker services and cleanup all temporary volumes
[group('compose')]
compose-down:
docker compose --profile all down --volumes --remove-orphans