0dp / generator-wp-bones

Yeoman generator to quickly install Bones Wordpress starter theme into your Wordpress theme folder
Other
68 stars 31 forks source link

Simple git #1

Closed iam4x closed 10 years ago

iam4x commented 10 years ago

Added support of downloading the latest boilerplate from github

All my code is commented, but here is a summup of my strategy:

Module: cloneBones

This our module, it's a Promise, it will be used to create our theme directory or to clean git, then it will clone the bones repository.

I prefered to use clone, cause if something goes wrong with, the bones directory, we would have to do execute:

$ git fetch
$ git reset --hard origin/master
$ git pull origin master

And if the user delete the .git folder, we would have to re-create it., So it's safer, to delete and clone again.

Oh and also, I've cleaned some of your files (*~ files).