[Libreoffice-commits] online.git: loleaflet/Makefile

Pranav Kant pranavk at collabora.co.uk
Mon Dec 12 10:39:06 UTC 2016


 loleaflet/Makefile |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 5938962e0ec98ad9cb75ab8daa40b6f840e7e307
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Mon Dec 12 15:54:43 2016 +0530

    loleaflet: build: Skip expensive 'npm install'
    
    This always takes ~2 seconds irrespective of whether node_modules
    needs updating or not. Lets add appropriate dependencies and save
    these precious 2 seconds.
    
    Change-Id: Ided4ff334316c16521e5ea7a69d15736a1cc170f

diff --git a/loleaflet/Makefile b/loleaflet/Makefile
index 9bb26f1..b9a3303 100644
--- a/loleaflet/Makefile
+++ b/loleaflet/Makefile
@@ -12,12 +12,15 @@ DEBUG=false
 MINIFY=false
 
 .PHONY: build
-build:
-	npm install
+build: node_modules
 	rm -rf dist/plugins/draw-$(DRAW_VERSION) && mkdir -p dist/plugins/draw-$(DRAW_VERSION)
 	cd plugins/draw-$(DRAW_VERSION) && jake build && cp -ar dist ../../dist/plugins/draw-$(DRAW_VERSION)
 	jake build debug=$(DEBUG) minify=$(MINIFY)
 
+node_modules: npm-shrinkwrap.json
+	npm install
+	touch node_modules
+
 .PHONY: build-l10n
 build-l10n:
 	mkdir -p dist/l10n/styles


More information about the Libreoffice-commits mailing list