is-ci-cli
Run different npm scripts in a CI environment
Last updated 5 years ago by cmurphy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-ci-cli 
SYNC missed versions from official npm registry.

is-ci-cli CI

Run different npm scripts in a CI environment

Install

Ensure you have Node.js version 8+ installed. Then run the following:

npm install --dev is-ci-cli

Usage

In your package.json:

"scripts": {
  "test": "is-ci-cli test:ci test:local"
}

When in a CI environment (as detected by is-ci), this runs the first argument as an npm (or yarn) script. Otherwise, run the 2nd argument (if provided)

License

MIT

Current Tags

  • 2.2.0                                ...           latest (4 years ago)

5 Versions

  • 2.2.0                                ...           4 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0 [deprecated]           ...           4 years ago
  • 2.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE