Skip to content

Commit

Permalink
reloads ghcid on embed/preflight.css change, adds hie.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyfold committed Jan 13, 2025
1 parent 97f0e75 commit 62a73d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ Local Development
If you want to work on both the web-view library and example code, this `ghcid` command will run and reload the examples server as you change any non-testing code.

```
ghcid --command="cabal repl exe:example lib:web-view" --run=Main.main --warnings
ghcid --command="cabal repl exe:example lib:web-view" --run=Main.main --warnings --reload=./embed/preflight.css
```

If you want to work on the test suite, this will run the tests each time any library code is changed.

```
ghcid --command="cabal repl test lib:web-view" --run=Main.main --warnings
ghcid --command="cabal repl test lib:web-view" --run=Main.main --warnings --reload=./embed/preflight.css
```

### Nix
Expand Down
2 changes: 1 addition & 1 deletion bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ watchexec -e hs,yaml cabal test &

# Autoreload on save. Show errors and warnings
# run even if warnings
ghcid --command="cabal repl exe:example lib:web-view" --run=Main.main --warnings
ghcid --command="cabal repl exe:example lib:web-view" --run=Main.main --warnings --reload=./embed/preflight.css
2 changes: 2 additions & 0 deletions hie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cradle:
cabal:

0 comments on commit 62a73d3

Please sign in to comment.