Replies: 1 comment
-
Here's the workaround I'm currently using in case that anyone is interested. fd .templ$ $1 | entr -r -s "templ generate -path $1" I've put this snippet into a shell script, which is then executed like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Since upgrading to the latest available version (
v0.2.543
) I've noticed thattempl
generatestxt
files and modifies all of thego
files for each template while in watch mode.Up until now my workflow was that I simply kept all of the watchers (including
templ
) and services used for development running the whole day while developing. I produce multiple commits during that time and each commit is stable - can be deployed on its own and doesn't break.With this change now I'd have to stop the
templ
watchers before I can create a stable / clean commit so that they revert thego
file changes and remove thetxt
files.I was wondering if you have considered this before implementing the change that introduced
txt
files / modifiedgo
files in watch mode? 🤔Would there be a possible solution where the
go
files wouldn't be edited, which would mean that I could simply ignoretxt
files in.gitignore
and continue working without interruptions? Another alternative could be a watch mode variant that doesn't usetxt
files / doesn't make changes togo
files, just as it was before in older versions.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions