-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (29 loc) · 1.15 KB
/
justfile
File metadata and controls
37 lines (29 loc) · 1.15 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
notebook := "../docs"
nix_shell := if env('IN_NIX_SHELL', '') != '' { '' } else { 'nix develop -c' }
# List available recipes
default:
@just --list
# Run hoogle
docs:
echo http://127.0.0.1:8888
{{nix_shell}} hoogle serve -p 8888 --local
# Run cabal repl
repl *ARGS:
{{nix_shell}} cabal repl --flags=ghcid {{ARGS}}
# Autoformat the project tree
fmt:
{{nix_shell}} pre-commit run --all-files
# Run the app using ghcid (with auto-reload / recompile)
# To run against a custom notebook:
# just notebook=$HOME/code/mynotebook run
run:
{{nix_shell}} ghcid -c 'cabal repl exe:emanote --flags=ghcid' --warnings -T ":main -L {{notebook}} run --port=9010"
# Run ghcid with log output to ghcid.log
ghcid:
{{nix_shell}} ghcid --outputfile=ghcid.log -c 'cabal repl exe:emanote --flags=ghcid' --warnings
# Run tests (with auto-reload / recompile)
test:
{{nix_shell}} ghcid -c "cabal repl test:test --flags=ghcid" --warnings -T :main
# Launch chrome-devtools MCP server (invoked by .mcp.json for Claude Code)
mcp-chrome-devtools *ARGS:
nix-shell nix/chrome-devtools/shell.nix --run "chrome-devtools-mcp --headless=true --isolated=true {{ARGS}}"