@cypress/deploy-bits
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,1 +0,1 @@ | ||
{"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"}} | ||
{"name":"@cypress/deploy-bits","description":"Reusable deployment utilities","version":"1.3.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/env-or-json-file":"1.2.0","@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"}} |
@@ -94,2 +94,23 @@ # @cypress/deploy-bits | ||
### getS3Config | ||
Returns S3 config loaded from environment variable or local file. If cannot find either, | ||
throws an error. | ||
```js | ||
const {getS3Config} = require(@cypress/deploy-bits) | ||
const config = getS3Config() | ||
``` | ||
Typical config file in `support/.aws-credentials.json` contains | ||
```json | ||
{ | ||
"bucket-production": "<production S3 folder name>" | ||
"bucket-staging": "<staging S3 folder name>", | ||
"key": "AWS API key", | ||
"secret": "AWS API secret" | ||
} | ||
``` | ||
### Small print | ||
@@ -96,0 +117,0 @@ |
@@ -7,2 +7,3 @@ 'use strict' | ||
const isCI = require('is-ci') | ||
const getS3Config = require('./get-s3-config') | ||
@@ -13,3 +14,4 @@ module.exports = { | ||
isCI, | ||
warnIfNotCI | ||
warnIfNotCI, | ||
getS3Config | ||
} |
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
10946
7
144
153
13
+ Added@cypress/env-or-json-file@1.2.0(transitive)
+ Addeddebug@2.6.8(transitive)