From b50abc513109acf8e1f13d84fbf9f1c219afc6a0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 4 Aug 2016 22:10:41 -0700 Subject: [PATCH] npm: Split out production-only dependencies. --- package.json | 19 ++++++++++--------- tools/update-prod-static | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 76ce43da89..8420d427a4 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,16 @@ "license": "Apache-2.0", "description": "", "main": "", - "dependencies": {}, - "devDependencies": { + "dependencies": { "handlebars": "1.3.0", + "i18next": "3.0.0", + "i18next-parser": "0.7.0", + "i18next-xhr-backend": "0.5.4", + "i18next-browser-languagedetector": "0.3.0", + "i18next-localstorage-cache": "0.3.0", + "webpack": "1.12.2" + }, + "devDependencies": { "istanbul": "0.4.0", "jQuery": "1.7.4", "jsdom": "0.5.7", @@ -14,13 +21,7 @@ "nwmatcher": "1.3.6", "htmlparser2": "3.8.3", "cssstyle": "0.2.29", - "webpack": "1.12.2", - "webpack-dev-server": "1.12.1", - "i18next": "3.0.0", - "i18next-parser": "0.7.0", - "i18next-xhr-backend": "0.5.4", - "i18next-browser-languagedetector": "0.3.0", - "i18next-localstorage-cache": "0.3.0" + "webpack-dev-server": "1.12.1" }, "scripts": {}, "repository": { diff --git a/tools/update-prod-static b/tools/update-prod-static index e8f062712b..fb4afbddea 100755 --- a/tools/update-prod-static +++ b/tools/update-prod-static @@ -28,7 +28,7 @@ subprocess.check_call(["mkdir", "-p", "var/log"]) fp = open('var/log/update-prod-static.log', 'w') # Install node packages -subprocess.check_call(['npm', 'install'], stdout=fp, stderr=fp); +subprocess.check_call(['npm', 'install', '--production'], stdout=fp, stderr=fp); # Compile Handlebars templates and minify JavaScript. subprocess.check_call(['python', 'tools/minify-js']