jeffbski / wait-on

wait-on is a cross-platform command line utility and Node.js API which will wait for files, ports, sockets, and http(s) resources to become available
MIT License
1.87k stars 77 forks source link

Wildcard for file #95

Open TannerS opened 3 years ago

TannerS commented 3 years ago

Is there any wait to wait on a wildcard filename before doing next command? Our file we want to wait on has the smae prefix but rest of the file name is random

jeffbski commented 3 years ago

Interesting requirement. We don't currently have that capability but I will give it some thought.

TannerS commented 3 years ago

Interesting requirement. We don't currently have that capability but I will give it some thought.

Basically we want to find a way to wait for webpack to finish compiling and generating the files before starting a server, but the files has a hash that is generated as part of the file name

jeffbski commented 3 years ago

yes it works great if the exact name is known but if adding a hash at the end then e we need some improvement

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jeffbski/wait-on/issues/95#issuecomment-810560234, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABMOKZ3G3B2GL4275ORO3TGIY2JANCNFSM42AYYNEA .

-- Jeff Barczewski Founder of CodeWinds http://codewinds.com/ Live and Online developer training

weilinzung commented 3 years ago

How about wait-on tsc --watch or tsc build compiled?