cjsauer / meteor-fresh

This project is no longer relevant now that Meteor 1.3 supports ES2015 modules!
15 stars 2 forks source link

Create a yeoman generator #5

Closed Davidsoff closed 9 years ago

Davidsoff commented 9 years ago

I will probably do this tomorrow but it would be cool to use the yeoman generator in stead of manually having to remove the .git folder

cjsauer commented 9 years ago

That's a great idea. Keep me posted with your results.

Davidsoff commented 9 years ago

all done, generator can be found at: https://www.npmjs.com/package/generator-meteor-fresh

cjsauer commented 9 years ago

Just tested. Nice work!

Could you have it make a new directory to put the files in? That would run more closely with meteor create my-new-app command. There's also a warning about bower install && npm install, could we remove that?

Lastly, I'm not too familiar with yo. Is this something we need to keep updated, or is it pulling from the latest Github release?

Davidsoff commented 9 years ago

sure thing. It is my first crack at doing this aswell so I'm glad it works. I'll create the issues in the generator repo :)

I'll try and build a script that will run whenever you update the master branch of this repo.

If you find anything else just let me know ;)

cjsauer commented 9 years ago

I'm willing to bet there's a way for a yo generator to pull its files from Github. Then you could just point it to the tip of the master branch.

cjsauer commented 9 years ago

Possibly this? https://github.com/addyosmani/generator-boilerplate

Davidsoff commented 9 years ago

yep, thats the one I used. we'll see if this auto updates. if it doesn't it'll probably take a git submodule update to fix it

Davidsoff commented 9 years ago

your requests have been heard and implemented :)

cjsauer commented 9 years ago

Wonderful! Looks like the submodule approach? It appears to be pointing one commit behind HEAD on develop. Maybe I should merge develop into master and tag it as a release. Can yo do things like pick the latest release from a project?

I'm trying to find an automated solution so that our updates here get picked up by yo without our interaction. That would be ideal. So yo users are always getting the latest release.

Davidsoff commented 9 years ago

I have pointed it to HEAD on master. Worst case there is probably a way to automate this using travis

cjsauer commented 9 years ago

Excellent. I'll merge develop into master and tag a release

Davidsoff commented 9 years ago

awesome, open up an issue on the generator repo if you updated so I can check if it auto updates ;)