Merge pull request #1652 from balena-io/more-correct-livepush-ux

Improve the UX by only printing effective file changes in livepush
This commit is contained in:
CameronDiver 2020-03-06 15:46:23 +00:00 committed by GitHub
commit ec73ee270b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -271,6 +271,10 @@ export class LivepushManager {
// Work out if we need to perform any changes on this container
const livepush = this.containers[serviceName].livepush;
if (!livepush.livepushNeeded(updated, deleted)) {
return;
}
this.logger.logLivepush(
`Detected changes for container ${serviceName}, updating...`,
);

6
npm-shrinkwrap.json generated
View File

@ -8282,9 +8282,9 @@
"integrity": "sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc="
},
"livepush": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/livepush/-/livepush-2.0.6.tgz",
"integrity": "sha512-z8mP6gxYFc2HE1PJdOmUz/1HLZxqFeoerAWPOX7WFFWxUqZX2PtYx4+K0FxFnrrzdjv0kuMaSU458VO2O/zLmg==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/livepush/-/livepush-2.1.0.tgz",
"integrity": "sha512-7DNYdaQjr261PHZDh7BZ/U1VlVWtMeuTDmP0EOk6jwuBBTdpGt2Yz7JEpv93ddRv7vthLH/kRUyNdTTgTd9I9Q==",
"requires": {
"bluebird": "^3.5.1",
"docker-file-parser": "^1.0.4",

View File

@ -206,7 +206,7 @@
"is-root": "^2.1.0",
"js-yaml": "^3.13.1",
"klaw": "^3.0.0",
"livepush": "^2.0.6",
"livepush": "^2.1.0",
"lodash": "^4.17.15",
"minimatch": "^3.0.4",
"mixpanel": "^0.10.3",