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

New commits:
commit 5938962e0ec98ad9cb75ab8daa40b6f840e7e307
Author: Pranav Kant <[email protected]>
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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to