gruntjs / grunt-init

Generate project scaffolding from a template.
http://gruntjs.com/project-scaffolding
MIT License
193 stars 58 forks source link

automate git pull of scaffold project before creating copy of project #72

Closed tmaslen closed 10 years ago

tmaslen commented 10 years ago

Hello,

I work in a team where we build multiple projects each month. Every project uses grunt, I look after the team and have built a project scaffold that the team use, initiating each project with a grunt-init.

As I update the project scaffold, I need to get everyone in my team to git pull origin master inside .grunt-init/[scaffold-name]. They are TERRIBLE at remembering to do this and I have had to go through their generated scaffold to manually add in changes many times.

What would be awesome is when they ran the command grunt-init [scaffold-name] the process ran git pull origin master before copying the project. This could be an option set in the grunt-init settings file.

What do you think?

/t

sindresorhus commented 10 years ago

No need to bloat init with this. Just use a shell alias:

alias grunt-init='git pull origin master && grunt-init'
tmaslen commented 10 years ago

I'll give that a try, thanks Sindre.

/t