Gem 一覧へ戻る
YellowKirby/is-ci-cli(新しいタブで開きます)
主要言語: JavaScript
Run different npm scripts in a CI environment
- star 数
- 49
- watcher 数
- 2
- fork 数
- 3
- issue 数
- 3
- 最終更新
- 2021/01/18
主要言語: JavaScript
Run different npm scripts in a CI environment
Run different npm scripts in a CI environment
Ensure you have Node.js version 8+ installed. Then run the following:
npm install --dev is-ci-cli
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)
MIT