Last active
August 29, 2015 14:09
-
-
Save sebastianha/dbe31f9a7cef269e4ae2 to your computer and use it in GitHub Desktop.
Show all bower packages of a project which can be updated in a table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show all bower packages of a project which can be updated | |
# Displays package name, current and latest version in a nice table | |
# Note: give bower some time to fetch the version information | |
bower list | grep latest | sed -e 's/[^#a-zA-Z0-9.+ ()-]//g' -e 's/^[[:space:]]*//g' | sort -u | sed -e 's/ (/#(/g' | tr -d '()' | sed -e 's/#latest is /#/g' | sed '1 i\Module Name#Current#Latest Version' | column -t -s'#' | |
# EXAMPLE: | |
# | |
# Module Name Current Latest Version | |
# jquery 1.11.0 2.1.1 | |
# jquery-ui 1.10.4 1.11.2 | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment