Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project updates with new versions #18

Closed
mhartington opened this issue Mar 20, 2014 · 3 comments
Closed

Project updates with new versions #18

mhartington opened this issue Mar 20, 2014 · 3 comments

Comments

@mhartington
Copy link

I had a project that I had created a few versions back and though I had kept the generator updated with each new version, I had to recreate the project to get the new features.

Is there a project level update function that can update the grunt files to keep up to date with new features?

For example, the project version I had didn't include any testing. But the Generator did have testing included in version 0.9. I should be able to run, for instance...

grunt: project update

Then be able update the grunt file and run bower install and npm install to include any new packages. This would keep existing project up to date as the generator updates

@douglascorrea
Copy link

If not, +1 vote to implement this feature

@diegonetto
Copy link
Owner

Thankfully this behavior is already built into Yeoman. Go ahead and install the latest version of this generator with npm install generator-ionicjs -g and go into your already existing project's directory.

Now simply run yo ionicjs again. Yeoman is smart enough to detect when its attempting to overwrite existing files, and I updated the initial cordova create command to not run for existing projects.

Here's an example output after re-scaffolding an existing project:

 conflict Gruntfile.js
[?] Overwrite Gruntfile.js? (Ynaxdh) 

You can play with the options, or type h to see the merging help.

http://stackoverflow.com/questions/18480316/how-to-upgrade-existing-project-scaffolded-with-yeoman

@mhartington
Copy link
Author

Thats great to hear. I'm not that well versed in Yeoman/Grunt so there are some hidden things that I'm not aware of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants