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

feat: develoment mode with hot-reloading #36

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

fahdfady
Copy link

@fahdfady fahdfady commented Feb 23, 2025

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 crate

3. a new CLI command metassr dev

starts in package.json by building the project by running npm run build normally
enters a development mode

  1. starts a normal server using `metassr-server
  2. watches for changes in files: uses metassr-watcher crate to watcher for changes
  3. Rebuilds on change (only for pages): if the watcher detected a change, rebuild
pub enum RebuildType {
    Page(PathBuf), // this only is doe
    Layout,
    Component,
    Style,
    Static,
}

@hulxv hulxv changed the title Development mode feat: develoment mode with hot-reloading Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant