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

safely-run #1

Closed
tomek-he-him opened this issue Jul 13, 2015 · 2 comments
Closed

safely-run #1

tomek-he-him opened this issue Jul 13, 2015 · 2 comments

Comments

@tomek-he-him
Copy link
Owner

safely-run

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'"
}
@tomek-he-him
Copy link
Owner Author

@mattdesl there is a thing in the same spirit called npm-run-all.

@tomek-he-him
Copy link
Owner Author

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

1 participant