Add/document an official way to verify that generated files are up-to-date #2754
samulisuomi
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
yes |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi and thanks for an amazing library!
As the lib relies on code generation (
routeTree.gen.ts
) it would be awesome to have an official way to check that that generated file is up to date vs. whatever is in my routes folder. This would be useful in CI/CD.I'm only tinkering with the quick start guide here, so maybe I've missed a thing or two. If a not up-to-date generated file ends up in your
main
branch, and you e.g. want to do a deploy from it, I guess things probably work out OK whenvite build
gets run before the deploy (because it seems to also update the generated file) but it would still be good if the git history was accurate even on the generated files, at least for debugging purposes and avoiding unknown unknowns when it comes to more exotic build+deploy flows.Thoughts? Please enlighten me if this doesn't make any sense. 🙂
Edit: Alternatively, the docs could advise gitignoring the generated file altogether (and not just ignoring it for linting/formatting) but I assumed there must be some reason for why this hadn’t been written there already? See #2754 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions