node-sleep
Description:
A configurable setTimeout().. nothing more. For use in npm scripts.
Installation:
npm install --save-dev @warren-bank/node-sleep
Usage:
node-sleep <integer> # milliseconds
Example:
package.json
{
"scripts": {
"bundle:main": "webpack --config webpack.config.main.js",
"dev:server": "webpack-dev-server --config webpack.config.renderer.js",
"dev:client": "electron .",
"dev:spawn:server": "npm run bundle:main && npm run dev:server",
"dev:spawn:client": "node-sleep 5000 && npm run dev:client",
"start": "concurrently --kill-others npm:dev:spawn:*"
}
}
Legal:
- copyright: Warren Bank
- license: GPLv2