adds SKIP_NPM_INSTALL control parameter

This commit is contained in:
Sameer Naik
2017-01-17 16:18:06 +05:30
parent d829dd89a8
commit 6cfd1d02e5

View File

@@ -80,7 +80,7 @@ add_sample_code() {
}
npm_install() {
if ! dependencies_up_to_date; then
if ! [[ -n $SKIP_NPM_INSTALL && $SKIP_NPM_INSTALL -gt 0 ]] && [[ -f package.json ]] && ! dependencies_up_to_date; then
log "Installing/Updating Express dependencies (npm)"
npm install
fi