From 5938962e0ec98ad9cb75ab8daa40b6f840e7e307 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 12 Dec 2016 15:54:43 +0530 Subject: [PATCH] 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 --- loleaflet/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/loleaflet/Makefile b/loleaflet/Makefile index 9bb26f1cc..b9a33033d 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