-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Snowman should support live reloading and the Livereload Protocol/Client . The new command ´snowman watch´ should:
- watch the file system for relevant changes and bundle those into chunks(every second?)
- build the site after such changes
- serve the site over HTTP
- inform the served site of changes over WebSockets
- automatically inject the live reload script onto pages (using the view definitions)
- optionally disable automatic injection and instead provide a template function for the same task
Implementation steps:
- Depreciate
snowman clean
and bundle it withsnowman build
#3 - Create a built in HTTP server
snowman server
#4 snowman build
should be able to build only static files when given thestatic
flag #23- ´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 thestatic
flag #23 - ´snowman watch´ should implement the Livereload WebSockets server and client injection using a template function
- ´snowman watch´ should automatically inject the Livereload client into pages
Reference: