Skip to content

Commit

Permalink
ci(nix): Add the old mission-control scripts back to the justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed May 21, 2024
1 parent ba41767 commit 1508631
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
32 changes: 0 additions & 32 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,38 +121,6 @@

};

mission-control.scripts = {
docs = {
description = "Start Hoogle server for project dependencies";
exec = ''
echo http://127.0.0.1:8888
stack hoogle -- serve -p 8888 --local
'';
category = "Dev Tools";
};

fmt = {
description = "Format the source tree";
exec = config.treefmt.build.wrapper;
category = "Dev Tools";
};

run = {
description = "Run the project with ghcid auto-recompile";
exec = ''
stack build --file-watch --fast --ghc-options='-O0 -fbyte-code' --exec "elara --dump-shunted --dump-core --dump-typed --run"
'';
category = "Primary";
};
test = {
description = "Run the project tests with ghcid auto-recompile";
exec = ''
stack build :elara-test --file-watch --fast --ghc-options="-O0 -fbyte-code"
'';
category = "Primary";
};
};


packages.default = self'.packages.elara;

Expand Down
15 changes: 14 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,17 @@
import 'just-flake.just'

default:
@just --list
@just --list

# Run the project tests with ghcid auto-recompile
test:
stack build :elara-test --file-watch --fast --ghc-options="-O0 -fbyte-code"

# Run the project with ghcid auto-recompile
run:
stack build --file-watch --fast --ghc-options='-O0 -fbyte-code' --exec "elara --dump-shunted --dump-core --dump-typed --run"

# Start Hoogle server for project dependencies
docs:
echo http://127.0.0.1:8888
stack hoogle -- serve -p 8888 --local

0 comments on commit 1508631

Please sign in to comment.