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
This commit is contained in:
Pranav Kant 2016-12-12 15:54:43 +05:30
parent 94153379f5
commit 5938962e0e

View file

@ -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