Skip to content

Commit

Permalink
Merge pull request #2969 from camptocamp/npm
Browse files Browse the repository at this point in the history
Don't install latest npm version
  • Loading branch information
sbrunner committed Jun 2, 2017
2 parents 926d93f + 3153d0f commit c41a208
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions c2cgeoportal/scaffolds/update/CONST_Makefile_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@ export VISIBLE_WEB_PROTOCOL

# ngeo
ANGULAR_VERSION = 1.5
ifeq ($(OPERATING_SYSTEM), LINUX)
NPM_CMD = node_modules/.bin/npm
else
NPM_CMD = npm
endif
APP_OUTPUT_DIR = $(PACKAGE)/static-ngeo/build
OL_JS_FILES = $(shell $(FIND) node_modules/openlayers/src/ol -type f -name '*.js' 2> /dev/null)
NGEO_JS_FILES = $(shell $(FIND) node_modules/ngeo/src -type f -name '*.js' 2> /dev/null)
Expand Down Expand Up @@ -615,8 +610,8 @@ serve: build development.ini
$(VENV_BIN)/pserve --reload --monitor-restart development.ini

.PHONY: update-node-modules
update-node-modules: $(NPM_CMD)
$(NPM_CMD) install --force
update-node-modules:
npm install --force
mkdir -p .build
touch .build/node_modules.timestamp

Expand Down Expand Up @@ -966,19 +961,11 @@ else
touch $@
endif

$(NPM_CMD):
$(PRERULE_CMD)
ifeq ($(OPERATING_SYSTEM), LINUX)
npm install npm || sleep 20 || npm install npm || sleep 90 || npm install npm
else
touch $@
endif

.build/node_modules.timestamp: package.json $(NPM_CMD)
.build/node_modules.timestamp: package.json
$(PRERULE_CMD)
mkdir -p $(dir $@)
ifneq ($(NGEO_INTERFACES), "")
$(NPM_CMD) install || sleep 20 || $(NPM_CMD) install || sleep 90 || $(NPM_CMD) install
npm install || sleep 20 || npm install || sleep 90 || npm install
endif
touch $@

Expand Down Expand Up @@ -1007,7 +994,7 @@ update:
git submodule foreach git submodule foreach git clean -fd
ifneq ($(NGEO_INTERFACES), "")
rm -f .build/node_modules.timestamp
$(NPM_CMD) install --force
npm install --force
touch .build/node_modules.timestamp
endif
@echo After that you should launch the `build` task.
Expand Down

0 comments on commit c41a208

Please sign in to comment.