Created
August 17, 2014 22:32
-
-
Save charlesponti/38817b88c3b90f2de3e7 to your computer and use it in GitHub Desktop.
Create Bower Package
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
puts '====================' | |
puts '======BOWERIZE======' | |
puts '====================' | |
puts '1. What\'s the name of your super awesome Bower package?' | |
@package_name = gets.chomp | |
puts '2. What is your GitHub username?' | |
@github_username = gets.chomp | |
puts '3. What is the name of the GitHub repo for your package?' | |
@github_repo = gets.chomp | |
puts "bower register #{@package_name} git://github.com/#{@github_username}/#{@github_repo}.git" | |
exec("bower register #{@package_name} git://github.com/$2/#.git") | |
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
# Add to your .bash_profile or .zshrc | |
# Create Bower Package | |
# $1 - Package name | |
# $2 - GitHub username | |
# $3 - GitHub repository | |
bowerize() { | |
bower register $1 git://github.com/$2/$3.git | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment