Closed matthewp closed 1 year ago
astro check --experimental-watch
With --watch
, do we expect to validate ALL files and then start watching, or should we just start watching for changes?
I think I would expect it to validate first, what do you think @Princesseuh?
I would also expect it to validate first! Maybe worth to check what tsc --watch
, svelte-check --watch
and vue-tsc --watch
do to see if there's a pattern we could follow.
tsc
does check and then starts watching. Makes sense to follow their lead. Good call @Princesseuh
This proposal has been accepted and merged. https://github.com/withastro/roadmap/blob/main/proposals/0030-astro-watch-check.md
Body
Summary
Add a
--watch
flag toastro check
.Background & Motivation
In development mode there isn't a way to know if your
.astro
files contain no errors, aside from editor feedback. If you useastro check
you will know about errors, but might not see them until CI unless you remember to run the command before pushing.Goals
.astro
files during development workflow.Non-Goals
Example