mirror of https://github.com/zulip/zulip.git
npm: Split out production-only dependencies.
This commit is contained in:
parent
4d02c6efef
commit
b50abc5131
19
package.json
19
package.json
|
@ -4,9 +4,16 @@
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "",
|
"main": "",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
"devDependencies": {
|
|
||||||
"handlebars": "1.3.0",
|
"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",
|
"istanbul": "0.4.0",
|
||||||
"jQuery": "1.7.4",
|
"jQuery": "1.7.4",
|
||||||
"jsdom": "0.5.7",
|
"jsdom": "0.5.7",
|
||||||
|
@ -14,13 +21,7 @@
|
||||||
"nwmatcher": "1.3.6",
|
"nwmatcher": "1.3.6",
|
||||||
"htmlparser2": "3.8.3",
|
"htmlparser2": "3.8.3",
|
||||||
"cssstyle": "0.2.29",
|
"cssstyle": "0.2.29",
|
||||||
"webpack": "1.12.2",
|
"webpack-dev-server": "1.12.1"
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
"scripts": {},
|
"scripts": {},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -28,7 +28,7 @@ subprocess.check_call(["mkdir", "-p", "var/log"])
|
||||||
fp = open('var/log/update-prod-static.log', 'w')
|
fp = open('var/log/update-prod-static.log', 'w')
|
||||||
|
|
||||||
# Install node packages
|
# 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.
|
# Compile Handlebars templates and minify JavaScript.
|
||||||
subprocess.check_call(['python', 'tools/minify-js']
|
subprocess.check_call(['python', 'tools/minify-js']
|
||||||
|
|
Loading…
Reference in New Issue