Be verbose when running npm commands

Change-Id: I77cf24466dd076cd88908704b4c8dca271c43fc3
This commit is contained in:
Honza Pokorny 2017-02-16 14:45:23 -04:00
parent bc22cb207d
commit 058087d860
1 changed files with 3 additions and 3 deletions

View File

@ -413,15 +413,15 @@
- shell: |
#!/bin/bash -eux
export DISPLAY=:99
npm install
npm install --verbose
# Try running as a standard lifecycle script, otherwise try custom.
npm_lifecycle_phases="publish install version test stop start restart pack"
if [[ $npm_lifecycle_phases =~ (^| ){command}($| ) ]]; then
npm {command} --silent
npm {command} --verbose
else
npm run {command} --silent
npm run {command} --verbose
fi
# If no shrinkwrap exists, generate it.