Skip to content

Commit

Permalink
feat(provision): update npm packages in update-all
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnorrby committed Feb 25, 2020
1 parent 89ec70a commit 67c2b5a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion _provision/update-all.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,24 @@ echo-ok "doom upgraded!"
echo-info "Wrote logs to $doom_log"
echo "$SPACE"

# TODO: global npm/gem/pip packages
# npm
npm_log=$(mktemp)
echo "$SPACE"
echo-info "Upgrading global npm packages..."
npm upgrade -g | tee $npm_log
echo-ok "npm packages upgraded!"
echo-info "Wrote logs to $npm_log"
echo "$SPACE"

# TODO: global gem/pip packages
# TODO: grep logs to find number of packages updated

# finish up
echo-info "Logs available at:"
echo " zplug: $zplug_log"
echo " vim_plug: $vim_plug_log"
echo " brew: $brew_log"
echo " doom: $doom_log"
echo " npm: $npm_log"
echo-ok "Done!"

0 comments on commit 67c2b5a

Please sign in to comment.