nodejs cartridge: use npm install --production#5215
nodejs cartridge: use npm install --production#5215Filirom1 wants to merge 1 commit intoopenshift:masterfrom worldline:nodejs-npm-install-production
Conversation
|
[test] |
|
Online Test Results: FAILURE (https://ci.dev.openshift.redhat.com/jenkins/job/test_pull_requests/8840/) |
|
The JbossEWS cartridge skip test too. Is there some convention for executing tests on jenkins? |
|
Or I could use a NPM_ARGS environement variable, and if not defined I set it to --production --loglevel info |
|
@Filirom1 It would make sense to me to do similar to other carts and have a development and production type modes triggered by environment vars. Typically production is the default. |
|
Evaluated for online test up to 73484c6 |
|
Is there anything new? Applications these days have so much devDeps, with gulp, mocha, browserify, stylus, all this kind of stuff. Deploying litterally takes tens of minutes! |
In the npm config doc it's explained that
-dmeans--loglevel info.Moreover,
https://www.npmjs.org/doc/cli/npm-install.html
devDependenciesare used for tests. We don't want to download tests dependencies when we deploy to openshift. It will make build faster for nodejs projects.