Skip to content

Implement auto-republishing of changed files in preview#183

Open
smaximov wants to merge 1 commit intoemacsorphanage:masterfrom
smaximov:feat-watch
Open

Implement auto-republishing of changed files in preview#183
smaximov wants to merge 1 commit intoemacsorphanage:masterfrom
smaximov:feat-watch

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