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 livereload and the Livereload protocol #2

Open
Abbe98 opened this issue Jul 21, 2021 · 0 comments
Open

Implement livereload and the Livereload protocol #2

Abbe98 opened this issue Jul 21, 2021 · 0 comments
Labels
epic 🏅 enhancement New feature or request

Comments

@Abbe98
Copy link
Collaborator

Abbe98 commented Jul 21, 2021

Snowman should support live reloading and the Livereload Protocol/Client . The new command ´snowman watch´ should:

  1. watch the file system for relevant changes and bundle those into chunks(every second?)
  2. build the site after such changes
  3. serve the site over HTTP
  4. inform the served site of changes over WebSockets
  5. automatically inject the live reload script onto pages (using the view definitions)
  6. optionally disable automatic injection and instead provide a template function for the same task

Implementation steps:

  1. Depreciate snowman clean and bundle it with snowman build #3
  2. Create a built in HTTP server snowman server #4
  3. snowman build should be able to build only static files when given the static flag #23
  4. ´snowman watch´(tier 1) watch the file system and rebuild and serve the site, if possible build only static files using snowman build should be able to build only static files when given the static flag #23
  5. ´snowman watch´ should implement the Livereload WebSockets server and client injection using a template function
  6. ´snowman watch´ should automatically inject the Livereload client into pages

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic 🏅 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant