We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A shell-independent alternative to ;, && and || operators.
;
&&
||
Most npm scripts only run on Unix / msys / cygwin with bash:
"scripts": {"test-and-build": "npm test && echo ✓ || echo Test failed!!!; npm run build" }
Make it run on any shell on any platform!
"scripts": {"test-and-build": "safely-run 'npm test' --and 'echo ✓' --or 'echo Test failed!!!' --then 'npm run build'" }
The text was updated successfully, but these errors were encountered:
@mattdesl there is a thing in the same spirit called npm-run-all.
Sorry, something went wrong.
mattdesl/module-best-practices#3 (comment)
No branches or pull requests
safely-run
A shell-independent alternative to
;
,&&
and||
operators.Most npm scripts only run on Unix / msys / cygwin with bash:
Make it run on any shell on any platform!
The text was updated successfully, but these errors were encountered: