mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-24 08:51:25 -05:00
Fix some issues with npm prune in the init.sh
This commit is contained in:
parent
f3003ff586
commit
b02ddfc860
1 changed files with 7 additions and 2 deletions
9
init.sh
9
init.sh
|
@ -94,8 +94,13 @@ sed -i 's|^CACHE_BUST=.*|CACHE_BUST='"$(LC_CTYPE=C LANG=C tr -dc A-Za-z0-9 </dev
|
||||||
php artisan migrate --force || error "${c_m}php artisan migrate --force$c_w exited with an error status"
|
php artisan migrate --force || error "${c_m}php artisan migrate --force$c_w exited with an error status"
|
||||||
}
|
}
|
||||||
|
|
||||||
msg "Running: ${c_m}npm install"
|
[[ -d node_modules ]] && {
|
||||||
npm prune && npm install --production || error "${c_m}npm prune && npm install --production$c_w exited with an error status"
|
msg "Running: ${c_m}npm prune --production"
|
||||||
|
npm prune --production || error "${c_m}npm prune --production$c_w exited with an error status"
|
||||||
|
}
|
||||||
|
|
||||||
|
msg "Running: ${c_m}npm install --production"
|
||||||
|
npm install --production || error "${c_m}npm install --production$c_w exited with an error status"
|
||||||
|
|
||||||
msg "Running: ${c_m}bower prune && bower install"
|
msg "Running: ${c_m}bower prune && bower install"
|
||||||
bower prune && bower install || error "${c_m}bower prune && bower install$c_w exited with an error status"
|
bower prune && bower install || error "${c_m}bower prune && bower install$c_w exited with an error status"
|
||||||
|
|
Loading…
Reference in a new issue