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

watch command #457

Open
netgusto opened this issue Dec 7, 2018 · 7 comments
Open

watch command #457

netgusto opened this issue Dec 7, 2018 · 7 comments
Labels
feature request next release to-do stuff that needs to happen, so plz do it k thx
Milestone

Comments

@netgusto
Copy link

netgusto commented Dec 7, 2018

💡 Feature description

It seems that a "watch source" is missing for the build subcommand.

Workaround

First, install fswatch on your system; then, at the root of your project :

fswatch -o -r ./src|xargs -I {} wasm-pack build --debug
@fitzgen fitzgen added enhancement New feature or request feature request labels Dec 10, 2018
@ashleygwilliams
Copy link
Member

i think this sounds great! once i get 0.6.0 out the door we can schedule this for the next release

@hobofan
Copy link

hobofan commented Jan 24, 2019

Here is another solution using cargo-watch:

cargo watch -i .gitignore -i "pkg/*" -s "wasm-pack build"

@ashleygwilliams ashleygwilliams added to-do stuff that needs to happen, so plz do it k thx and removed enhancement New feature or request labels Jul 16, 2019
@ashleygwilliams ashleygwilliams added this to the 0.10.0 milestone Jul 16, 2019
@ashleygwilliams ashleygwilliams changed the title build watch watch command Jul 16, 2019
@ashleygwilliams
Copy link
Member

update! looking to do this soon :) cc @fitzgen rustwasm/rfcs@8aae141

@boringcactus
Copy link

there's a draft implementation of this (and the proposed serve command from rustwasm/rfcs#10 as well) in #745, for what it's worth

@jasonwilliams
Copy link

@ashleygwilliams @boringcactus what happened to this? Is there still any work in progress?

@pastelmind
Copy link

pastelmind commented Jun 12, 2022

I hope this comes through. I used onchange because I didn't want to force fellow developers to install cargo-watch, but having Watch Mode built in would be great.

@matthiasgeihs
Copy link
Contributor

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request next release to-do stuff that needs to happen, so plz do it k thx
Projects
None yet
Development

No branches or pull requests

8 participants