Split node modules into production and development groups
authorvarac <varacanero@zeromail.org>
Thu, 1 Jun 2017 11:10:15 +0000 (13:10 +0200)
committerTayane Fernandes <tayane.rmf@gmail.com>
Fri, 2 Jun 2017 14:15:33 +0000 (11:15 -0300)
The rationale behind this is that we now a too complex dependency graphs
of node modules (~1000 !).
This breaks at least under certain circumstances like installing the
modules on a shared folder inside vagrant.

This should fix #1076.

Makefile
web-ui/package.json

index b597c3f..899b6c8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ install_py: service/requirements.txt service/test_requirements.txt
 
 requirements_js:
        @cd web-ui;\
+       npm install --production;\
        npm install;\
        node_modules/.bin/bower install
 
index 2ef337a..de16500 100644 (file)
@@ -36,7 +36,9 @@
     "i18next-browser-languagedetector": "1.0.1",
     "i18next-xhr-backend": "1.2.1",
     "iframe-resizer": "3.5.7",
-    "imagemin": "5.2.1",
+    "imagemin": "5.2.1"
+  },
+  "dependencies": {
     "imagemin-pngquant": "5.0.0",
     "imagemin-svgo": "5.2.0",
     "isomorphic-fetch": "2.2.1",