Skip to content

Instantly share code, notes, and snippets.

@matthamil
Last active August 22, 2016 18:09
Show Gist options
  • Save matthamil/b21bd6566f3be60611c957e9607aa107 to your computer and use it in GitHub Desktop.
Save matthamil/b21bd6566f3be60611c957e9607aa107 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo ==== Boilerplate Generator 1.0 ====
wget https://github.com/matthamil/frontend-boilerplate/archive/master.zip
echo * Unzipping
unzip master.zip
rm master.zip
mv frontend-boilerplate-master/* .
mv frontend-boilerplate-master/.* .
rm -rf frontend-boilerplate-master/
bower install
npm install
echo "🤔 Repo name:"
read name
echo "✨ Creating repo: $name"
curl -u matthamil https://api.github.com/user/repos -d '{ "name": "'"$name"'" }'
git init
git add .
git commit -m "first commit"
git remote add origin "git@github.com:matthamil/${name}.git"
git push -u origin master
echo * 👍 Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment