From b83431c2e09cafaad40c8b04abb16f79bcb5acc1 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Fri, 6 Mar 2020 15:17:02 +0000 Subject: [PATCH] Improve the UX by only printing effective file changes in livepush Change-type: patch Signed-off-by: Cameron Diver --- lib/utils/device/live.ts | 4 ++++ npm-shrinkwrap.json | 6 +++--- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/utils/device/live.ts b/lib/utils/device/live.ts index 747ad1d9..4dc81834 100644 --- a/lib/utils/device/live.ts +++ b/lib/utils/device/live.ts @@ -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...`, ); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 41990991..535d72bb 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -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", diff --git a/package.json b/package.json index 25531a79..7cc7803b 100644 --- a/package.json +++ b/package.json @@ -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",