Skip to content

Instantly share code, notes, and snippets.

@charlesponti
Created August 17, 2014 22:32
Show Gist options
  • Save charlesponti/38817b88c3b90f2de3e7 to your computer and use it in GitHub Desktop.
Save charlesponti/38817b88c3b90f2de3e7 to your computer and use it in GitHub Desktop.
Create Bower Package
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")
# 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