-
Notifications
You must be signed in to change notification settings - Fork 6
feat: development mode with hot-reloading #36
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
Conversation
…w API Signed-off-by: fahdfady <[email protected]>
…d some code edits
Signed-off-by: Fahd Ashour <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but final requests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last thing and it will be ready to merge
2ea924a
to
ea9387a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a step related to issue the development mode mentioned in issue #24
This adds
1. a new crate:
metassr-watcher
2. a rebuilder module inside
metassr-server
crate3. a new CLI command
metassr dev
starts in package.json by building the project by running
npm run build normally
enters a development mode
metassr-watcher
crate to watcher for changes4. trigger a refresh
open a WebSocket connection
metassr-watcher
.model
how this works:
metassr-watcher
watches for a file change ==> identify a rebuild typeRebuildType
==> Rebuild ==> trigger reload