if-ci ·
Easily run npm scripts only when in (or not in) a CI environment.
installation
npm i --save-dev if-ci
usage
if-ci
ships with two commands, the obvious if-ci
as well as if-not-ci
.
To use them, just prepend them to any existing command in an npm script.
if-ci
Will only run the given command when in a CI environment.
If you have multiple commands in a script, just use it again:
if-not-ci
Works inversely to if-ci
and will only run the given command when
not in a CI environment.
contributing
Pull requests and any issues found are always welcome.
- Fork the project, and preferably create a branch named something like
feat-make-better
- Modify as needed
- Make sure all tests continue to pass, and it never hurts to have more tests
- Push & pull request! 🎉
license
MIT © Bo Lingen / citycide