is-ci-cli
Run different npm scripts in a CI environment
Last updated 6 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 (6 years ago)

8 Versions

  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 2.2.0                                ...           6 years ago
  • 2.1.2                                ...           6 years ago
  • 2.1.1                                ...           6 years ago
  • 2.1.0 [deprecated]           ...           6 years ago
  • 2.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 15
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

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