add NOCLIENT option to install only server dependencies
authorRigel Kent <sendmemail@rigelk.eu>
Mon, 25 Feb 2019 21:30:47 +0000 (22:30 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Mon, 25 Feb 2019 21:30:47 +0000 (22:30 +0100)
package.json

index fffbc8e32365c891ea92b2a96c6f19e09751349e..04b1032c4d0269d90b065cc50c9e72679098cd9b 100644 (file)
@@ -53,7 +53,7 @@
     "parse-log": "node ./dist/scripts/parse-log.js",
     "prune-storage": "node ./dist/scripts/prune-storage.js",
     "optimize-old-videos": "node ./dist/scripts/optimize-old-videos.js",
-    "postinstall": "cd client && yarn install --pure-lockfile",
+    "postinstall": "test -n \"$NOCLIENT\" || (cd client && yarn install --pure-lockfile)",
     "tsc": "tsc",
     "commander": "commander",
     "ng": "ng",