server-ready-cli
Run commands only when a server is available
Useful if you want to run things in parallel but need to wait for a server to be ready.
Install
$ npm install -g server-ready-cli
Usage
$ server-ready --port 3000 -- some-command
Example
In your package.json
, you can use server-ready-cli
to run client
only when server
is available.
See also
- server-ready Programmatic API.
- npm-run-all CLI tool to run multiple npm-scripts in parallel or sequential.
License
MIT - Typicode 🌵