wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

watch command

Open netgusto opened this issue 6 years ago • 6 comments

💡 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

netgusto avatar Dec 07 '18 09:12 netgusto

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

ashleygwilliams avatar Dec 18 '18 21:12 ashleygwilliams

Here is another solution using cargo-watch:

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

hobofan avatar Jan 24 '19 00:01 hobofan

update! looking to do this soon :) cc @fitzgen https://github.com/rustwasm/rfcs/pull/10/commits/8aae141bb09eb91b50a53e74bc33bd95813b9da9

ashleygwilliams avatar Jul 16 '19 15:07 ashleygwilliams

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

boringcactus avatar Aug 08 '20 06:08 boringcactus

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

jasonwilliams avatar Dec 03 '21 17:12 jasonwilliams

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.

pastelmind avatar Jun 12 '22 00:06 pastelmind

Any news?

matthiasgeihs avatar Jan 23 '23 15:01 matthiasgeihs