Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved dev flow #849

Closed
martinmunillas opened this issue Jul 15, 2024 · 2 comments
Closed

Improved dev flow #849

martinmunillas opened this issue Jul 15, 2024 · 2 comments

Comments

@martinmunillas
Copy link

As of right now I see myself using the following Makefile

include .env
export

templ:
	templ generate --watch --proxy="http://localhost:8020" -v

server:
	wgo run ./cmd

dev:
	make -j2 templ server

so I'm able to have auto reload on changes by doing make dev, it would be ideal if this could be baked altogether with in a templ run command or something. It would also be ideal if there could be a flag to attach a delve debugger to it and debug from the editor.

I would be more than willing to help doing these changes with some directions

@a-h
Copy link
Owner

a-h commented Aug 18, 2024

I think you might be asking for templ generate --watch to re-run the cmd if Go files change. We want to do this, see #646

@a-h
Copy link
Owner

a-h commented Aug 24, 2024

I'll close this as a duplicate, since no extra info was received.

@a-h a-h closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants