-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (61 loc) · 1.45 KB
/
justfile
File metadata and controls
79 lines (61 loc) · 1.45 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@_default:
just --list
# installs/updates all dependencies
@bootstrap:
docker compose pull
docker compose build
# invoked by continuous integration servers to run tests
@cibuild:
just bootstrap
# removes generated files
@clean:
rm -rf .vendor _site Gemfile.lock
# opens a console
@console:
echo "TODO: console"
# restarts all docker services
@restart:
docker compose restart
# starts app
@server *ARGS:
docker compose up {{ ARGS }}
# sets up a project to be used for the first time
@setup:
just bootstrap
# starts server in detached mode
@start +ARGS="--detach":
just server {{ ARGS }}
# stops all docker services
@stop:
docker compose down
# starts docker compose services in detached mode
@up *ARGS:
docker compose up --detach {{ ARGS }}
# stops and removes docker compose services
@down *ARGS:
docker compose down {{ ARGS }}
# follows docker container logs
@tail:
docker compose logs --follow --tail 100
# runs tests
@test:
echo "TODO: test"
# updates a project to run at its current version
@update:
just bootstrap
# ----
# formats the justfile
@fmt:
just --fmt --unstable
# formats html and sorts tailwind classes
@lint:
djhtml \
--in-place \
--tabwidth 2 \
*.html _includes/*.html _layouts/*.html
rustywind \
--write \
.
# generates screenshots using shot-scraper
@screenshots ARGS="--no-clobber":
shot-scraper multi {{ ARGS }} ./shots.yml