Skip to content

Commit

Permalink
bin: Switch to just
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 7, 2023
1 parent d886942 commit 54a9b29
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 40 deletions.
21 changes: 0 additions & 21 deletions .vscode/tasks.json

This file was deleted.

4 changes: 0 additions & 4 deletions bin/hoogle

This file was deleted.

4 changes: 0 additions & 4 deletions bin/repl

This file was deleted.

5 changes: 0 additions & 5 deletions bin/run

This file was deleted.

4 changes: 0 additions & 4 deletions bin/test

This file was deleted.

4 changes: 2 additions & 2 deletions emanote/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ https://emanote.srid.ca/examples

Emanote is a Haskell software.[^licenses] Thanks to Nix, this repository is pre-configured to provide a delightful development experience with full IDE support in Visual Studio Code.

See https://srid.ca/haskell-template/start for complete instructions, but the tldr is: Install nix, enable Flakes and run `bin/run`.
See https://srid.ca/haskell-template/start for complete instructions, but the tldr is: Install nix, enable Flakes and run `just run` in the Nix dev shell.

See [architecture.md](docs/architecture.md) for a high-level overview of the codebase.

### PR contribution guidelines

Run `nix build .#check -L` when opening a PR.
Run `nix run nixpkgs#nixci` before opening a PR.

## Discussion

Expand Down
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@
config.haskellProjects.default.outputs.devShell
config.treefmt.build.devShell
];
packages = with pkgs; [
just
];
});

emanote = {
Expand Down
23 changes: 23 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
default:
@just --list

# Run hoogle
docs:
echo http://127.0.0.1:8888
hoogle serve -p 8888 --local

# Run cabal repl
repl *ARGS:
cabal repl --flags=ghcid {{ARGS}}

# Autoformat the project tree
fmt:
treefmt

# Run the app using ghcid (with auto-reload / recompile)
run:
ghcid -c 'cabal repl exe:emanote --flags=ghcid' --warnings -T ":main -L ../docs run --port=9010"

# Run tests (with auto-reload / recompile)
test:
ghcid -c "cabal repl test:test --flags=ghcid" --warnings -T :main

0 comments on commit 54a9b29

Please sign in to comment.