Last active
March 24, 2016 11:08
-
-
Save nelsonsilva/2c961fab4d7a326db8d6 to your computer and use it in GitHub Desktop.
bower_freeze.sh
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
| #!/bin/sh | |
| # Run in a clean directory passing in a GitHub org, repo and tag/branch name | |
| org=$1 | |
| repo=$2 | |
| branch=$3 | |
| mkdir $repo | |
| pushd $repo >/dev/null | |
| bower install $org/$repo#$branch | |
| pushd bower_components >/dev/null | |
| zip -r $repo.zip * | |
| mvn install:install-file -Dfile=$repo.zip -DgroupId=$org -DartifactId=$repo -Dversion=$branch -Dpackaging=zip | |
| popd >/dev/null | |
| popd >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment