Skip to content

Commit

Permalink
Restart the app when new locale files are added
Browse files Browse the repository at this point in the history
Refs #2017
  • Loading branch information
thewilkybarkid committed Oct 24, 2024
1 parent 109845f commit 2246a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ start-app: .env node_modules start-services src/manifest.json
npx tsx watch --clear-screen=false --include=src/manifest.json --require dotenv/config src/index.ts

start:
find locales assets -type f | grep --invert-match assets/locales | entr -r make start-app
watchexec --restart --watch assets --watch locales --ignore assets/locales/ -- make start-app

.dev/server.crt .dev/server.key: SHELL := /usr/bin/env bash
.dev/server.crt .dev/server.key: .env
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The source code for [prereview.org].
- [Bash]
- [Docker]
- [Docker Compose]
- [entr]
- [watchexec]
- [GNU Make]
- [intlc]
- [mkcert]
Expand Down Expand Up @@ -41,7 +41,6 @@ Once it passes CI, we deploy every commit on the `main` branch to [prereview.org
[bash]: https://www.gnu.org/software/bash/
[docker]: https://www.docker.com/
[docker compose]: https://docs.docker.com/compose/
[entr]: https://eradman.com/entrproject/
[fly.io]: https://fly.io/
[git lfs]: https://git-lfs.github.com/
[gnu make]: https://www.gnu.org/software/make/
Expand All @@ -51,3 +50,4 @@ Once it passes CI, we deploy every commit on the `main` branch to [prereview.org
[node.js]: https://nodejs.org/
[prereview.org]: https://prereview.org/
[sandbox.prereview.org]: https://sandbox.prereview.org/
[watchexec]: https://watchexec.github.io/

0 comments on commit 2246a86

Please sign in to comment.