Skip to content

feat(cli): ags run naive --watch mode #660

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Aetherall
Copy link

Hi !

Most of the code and ideas are retrieved from #634

With the difference of using esbuild watch mode in an attempt to delegate cache invalidation to the builder.

First time writing go, so please review with caution :)

@Aetherall
Copy link
Author

Hi @Aylur, Thanks a lot for your work on ags and astal :)

Maybe this PR can help with the watch mode request ?
Have a great day !

@j4ger
Copy link

j4ger commented Apr 2, 2025

While this is pending for merge, I'm using this workaround to get working live reload:
(This is in Justfile syntax, but it can be used in a bash script with minimal changes)

run:
    @while true; do \
        echo "Starting the bar..."; \
        ags run --gtk4 . & \
        echo "Bar started, waiting for file changes..."; \
        inotifywait -q -r -e modify,move,create,delete .; \
        echo "File change detected. Killing bar"; \
        pkill ags; \
        pkill gjs; \
    done

@sharmapukar217 sharmapukar217 mentioned this pull request Apr 8, 2025
2 tasks
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

Successfully merging this pull request may close these issues.

2 participants