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

Implement auto-republishing of changed files in preview #183

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

Conversation

smaximov
Copy link
Contributor

This PR adds a new interactive command op/do-publication-and-preview-watch. It does two things:

  • publishes the site and starts preview (basically, calls op/do-publication-and-preview-site);
  • starts watching the repository for changes. When any of watched files change, a watch handler publishes it again.

To remove all watch handlers, one should use command op/stop-all-watches.

@smaximov
Copy link
Contributor Author

This feature can be used to implement live reloading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant