@cypress/deploy-bits
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,1 +0,1 @@ | ||
{"name":"@cypress/deploy-bits","description":"Reusable deployment utilities","version":"1.1.0","author":"Gleb Bahmutov <gleb.bahmutov@gmail.com>","bugs":"https://github.com/cypress-io/deploy-bits/issues","config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm prune","npm run deps","npm test","git add src/*.js","npm run ban"],"pre-push":["npm run secure","npm run license","npm run ban -- --all","npm run size"],"post-commit":[],"post-merge":[]}},"engines":{"node":">=6"},"files":["src/*.js","!src/*-spec.js"],"homepage":"https://github.com/cypress-io/deploy-bits#readme","keywords":["deploy","git","s3","utils"],"license":"MIT","main":"src/","publishConfig":{"registry":"http://registry.npmjs.org/"},"repository":{"type":"git","url":"https://github.com/cypress-io/deploy-bits.git"},"scripts":{"ban":"ban","deps":"deps-ok && dependency-check --no-dev .","issues":"git-issues","license":"license-checker --production --onlyunknown --csv","lint":"standard --verbose --fix src/*.js","prelint":"npm run pretty","pretest":"npm run lint","pretty":"prettier-standard 'src/*.js'","secure":"nsp check","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"npm run unit","unit":"mocha src/*-spec.js","semantic-release":"semantic-release pre && npm publish --access public && semantic-release post"},"release":{"analyzeCommits":"simple-commit-message","generateNotes":"github-post-release","verifyRelease":{"path":"dont-crack","test-against":[]}},"devDependencies":{"ban-sensitive-files":"1.9.0","dependency-check":"2.9.1","deps-ok":"1.2.1","dont-crack":"1.2.1","git-issues":"1.3.1","github-post-release":"1.13.1","license-checker":"15.0.0","mocha":"4.0.1","nsp":"2.8.1","pre-git":"3.15.3","prettier-standard":"7.0.3","semantic-release":"8.2.0","simple-commit-message":"3.3.2","snap-shot-it":"4.0.1","standard":"10.0.3"},"dependencies":{"@cypress/questions-remain":"1.0.1","bluebird":"3.5.1","chalk":"2.3.0","check-more-types":"2.24.0","debug":"3.1.0","gift":"0.10.0","inquirer":"3.3.0","lazy-ass":"1.6.0","lodash":"4.17.4","minimist":"1.2.0","ramda":"0.25.0"}} | ||
{"name":"@cypress/deploy-bits","description":"Reusable deployment utilities","version":"1.2.0","author":"Gleb Bahmutov <gleb.bahmutov@gmail.com>","bugs":"https://github.com/cypress-io/deploy-bits/issues","config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm prune","npm run deps","npm test","git add src/*.js","npm run ban"],"pre-push":["npm run unused-deps","npm run secure","npm run license","npm run ban -- --all","npm run size"],"post-commit":[],"post-merge":[]}},"engines":{"node":">=6"},"files":["src/*.js","!src/*-spec.js"],"homepage":"https://github.com/cypress-io/deploy-bits#readme","keywords":["deploy","git","s3","utils"],"license":"MIT","main":"src/","publishConfig":{"registry":"http://registry.npmjs.org/"},"repository":{"type":"git","url":"https://github.com/cypress-io/deploy-bits.git"},"scripts":{"ban":"ban","deps":"deps-ok && dependency-check --no-dev .","unused-deps":"dependency-check --unused --no-dev .","issues":"git-issues","license":"license-checker --production --onlyunknown --csv","lint":"standard --verbose --fix src/*.js","prelint":"npm run pretty","pretest":"npm run lint","pretty":"prettier-standard 'src/*.js'","secure":"nsp check","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"npm run unit","unit":"mocha src/*-spec.js","semantic-release":"semantic-release pre && npm publish --access public && semantic-release post"},"release":{"analyzeCommits":"simple-commit-message","generateNotes":"github-post-release","verifyRelease":{"path":"dont-crack","test-against":[]}},"devDependencies":{"ban-sensitive-files":"1.9.0","dependency-check":"2.9.1","deps-ok":"1.2.1","dont-crack":"1.2.1","git-issues":"1.3.1","github-post-release":"1.13.1","license-checker":"15.0.0","mocha":"4.0.1","nsp":"2.8.1","pre-git":"3.15.3","prettier-standard":"7.0.3","semantic-release":"8.2.0","simple-commit-message":"3.3.2","snap-shot-it":"4.0.1","standard":"10.0.3"},"dependencies":{"@cypress/questions-remain":"1.0.1","bluebird":"3.5.1","chalk":"2.3.0","check-more-types":"2.24.0","debug":"3.1.0","gift":"0.10.0","inquirer":"3.3.0","is-ci":"1.0.10","lazy-ass":"1.6.0","lodash":"4.17.4","minimist":"1.2.0","ramda":"0.25.0"}} |
@@ -26,2 +26,24 @@ # @cypress/deploy-bits | ||
### isCI | ||
Returns `true` if the code is running on a common continuous integration server. | ||
Uses [is-ci](https://github.com/watson/is-ci). | ||
```js | ||
const {isCI} = require(@cypress/deploy-bits) | ||
if (isCI) { | ||
// we are on CI | ||
} | ||
``` | ||
### warnIfNotCI | ||
Prints a console warning if the code is not running on CI. Often we prefer deploying | ||
from CI rather than running the deploy command locally. | ||
```js | ||
const {warnIfNotCI} = require(@cypress/deploy-bits) | ||
warnIfNotCI() | ||
``` | ||
### getDeployEnvironment | ||
@@ -28,0 +50,0 @@ |
@@ -7,4 +7,13 @@ const questionsRemain = require('@cypress/questions-remain') | ||
const debug = require('debug')('deploy-bits') | ||
const isCI = require('is-ci') | ||
const cannonAskQuestionOnCI = ` | ||
Cannot ask question | ||
Running on CI! | ||
` | ||
function prompt (questions) { | ||
if (isCI) { | ||
throw new Error(cannonAskQuestionOnCI) | ||
} | ||
return Promise.resolve(inquirer.prompt(questions)) | ||
@@ -11,0 +20,0 @@ } |
@@ -5,6 +5,10 @@ 'use strict' | ||
const checkBranchEnvFolder = require('./check-branch-env-folder') | ||
const warnIfNotCI = require('./warn-if-not-ci') | ||
const isCI = require('is-ci') | ||
module.exports = { | ||
getDeployEnvironment, | ||
checkBranchEnvFolder | ||
checkBranchEnvFolder, | ||
isCI, | ||
warnIfNotCI | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9462
6
113
132
12
+ Addedis-ci@1.0.10
+ Addedci-info@1.6.0(transitive)
+ Addedis-ci@1.0.10(transitive)