-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
42 lines (32 loc) · 689 Bytes
/
justfile
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
stack_build := "stack build --fast"
src_dirs := "src test"
# No default tasks
default:
just --list
# Build and run tests
test:
{{ stack_build }} --test
# Build only
build:
{{ stack_build }} --test --no-run-tests
# Clean stack work
clean:
stack clean --full
# Enter repl
ghci:
stack ghci --test
# Open browser with generated docs
docs:
stack haddock --open
# Install tool deps
deps:
stack build --copy-compiler-tool hlint fourmolu
# Format with fourmolu
format:
stack exec -- fourmolu --mode inplace {{ src_dirs }}
# Lint with hlint
lint:
stack exec -- hlint {{ src_dirs }}
# Run the executable
exe:
{{ stack_build }} --test --no-run-tests --exec overeasy-exe