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:
parent
94153379f5
commit
5938962e0e
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue