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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wildcard for file

TannerS opened this issue · comments

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

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

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

commented

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