Skip to content

Instantly share code, notes, and snippets.

@lotsofcode
Created March 15, 2013 11:13
Show Gist options
  • Select an option

  • Save lotsofcode/5169117 to your computer and use it in GitHub Desktop.

Select an option

Save lotsofcode/5169117 to your computer and use it in GitHub Desktop.
function yeoapp() {
local dirname="$1"
if [ "$dirname" = "" ]; then
echo "usage: yeoman $dirname";
return 1;
fi
if [ -d "$dirname" ]; then
echo "'$dirname' exists, please choose another";
return 1;
fi
mkd $dirname
yo webapp
git init && git add -A && git commit -am "First commit";
npm install && bower install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment