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

Could it wait until a directory contains files i.e. not empty? #96

Open
bytrangle opened this issue Mar 30, 2021 · 1 comment
Open

Could it wait until a directory contains files i.e. not empty? #96

bytrangle opened this issue Mar 30, 2021 · 1 comment

Comments

@bytrangle
Copy link

bytrangle commented Mar 30, 2021

I want a build command to only run until a subdirectory contains files. Is it possible with wait-on?
Here is what worked:

"scripts" : {
  "start:clipper": "wait-on popup/build/js && npm run watch_clipper"
}

Hower, this didn't work:

"scripts" : {
  "start:clipper": "wait-on popup/build/* && npm run watch_clipper"
}

Even though the first one works, it's a little inflexible because the content of popup/build may change and no longer contains a js subdirectory.

@jeffbski
Copy link
Owner

We haven't built that feature in yet. It might be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants