jeffbski / jeffbski/wait-on

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

Open
#96 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
87
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.