Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Have live reload preview watch over entire rust worker directory #535

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

gabbifish
Copy link
Contributor

Closes #522.

This change has the live reload functionality watch over the entire rust worker directory, and does not look for package.json files that do not typically exist for rust wasm projects.

@gabbifish gabbifish added this to the 1.3.0 milestone Sep 6, 2019
@gabbifish gabbifish added regression Something is broken, but works in previous releases status - needs review labels Sep 6, 2019
Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yass

@gabbifish gabbifish changed the title Have live reload preview watch over entire worker directory Have live reload preview watch over entire rust worker directory Sep 8, 2019
watcher.watch(&path, RecursiveMode::Recursive).unwrap();
watcher.watch(&entry, RecursiveMode::Recursive).unwrap();
message::info(&format!("watching {:?} and {:?}", &path, &entry));
watcher.watch(RUST_PATH, RecursiveMode::Recursive).unwrap();
Copy link
Member

@xtuc xtuc Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this watches target as well?

Could we ignore dotfiles as well? To avoid Vim's swap (btw you can turn it off in the settings) or similiar.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the notify crate doesn't allow us to ignore dotfiles :(
https://docs.rs/notify/5.0.0-pre.1/notify

Copy link
Member

@xtuc xtuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have comments but LGTM.

@gabbifish gabbifish merged commit 24f2431 into master Sep 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the gabbi/fix-rust-live-preview branch September 9, 2019 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
regression Something is broken, but works in previous releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Live update preview doesn't work for rust projects
4 participants