-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
33 lines (23 loc) · 719 Bytes
/
justfile
File metadata and controls
33 lines (23 loc) · 719 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
project_root := justfile_directory()
config_dir := project_root / ".config"
scripts_dir := project_root / "scripts"
src_dir := project_root / "src"
default: open
open target="":
code "{{ project_root }}/workbench.code-workspace"
build target="":
python "{{ scripts_dir }}/main.py" build {{ target }}
test target="":
python "{{ scripts_dir }}/main.py" test {{ target }}
run target="":
python "{{ scripts_dir }}/main.py" run {{ target }}
format: up
python "{{ scripts_dir }}/main.py" format
lint: up
python "{{ scripts_dir }}/main.py" lint
up:
"{{ scripts_dir }}/up.bash"
clean:
"{{ scripts_dir }}/clean.bash" "{{ project_root }}"
nuke:
"{{ scripts_dir }}/clean.bash" "{{ project_root }}" nuke