0

Ok, I want to start working with Angular2 and I'd like to do it through a JHipster generated application as this is the line of work we follow on some of our applications at work

I've been looking through a number of questions in SO such as: How to update the JHipster project after updating JHipster generator? How to upgrade jhipster sub-generator?

And I've also gone through the documentation of JHipster release 4.0.0 here: https://jhipster.github.io/2017/02/02/jhipster-release-4.0.0.html

But with all of that what still remains unclear to me are the implications that updating the subgenerator to the latest version would have on my existing applications

My concern is:

I do not wish to upgrade the already existing applications to the latest JHipster version nor to change from Angular 1 to 2 in them (at least not for a length of time) so in which way could updating the sub-generator affect my already existing applications when trying to work on them?

Steven
  • 1,236
  • 1
  • 13
  • 37

1 Answers1

2

JHipster (since version 3) installs itself into your project's local node_modules folder. It should be included in your package.json under the dependencies section.

This means that when you run yo jhipster inside of your previously generated project folder, it loads the locally installed version specified in package.json instead of your globally installed version (which could be a different version).

You can verify the version your project uses by running yo jhipster:info or looking for the version in your package.json

Jon Ruddell
  • 6,244
  • 1
  • 22
  • 40
  • Great answer! Thank you, so from this I understand two things: 1.- No implications what so ever to existing applications if I do not change the version in package.json 2.- If I do wish to update the applications, first step would be to update package.json and follow the steps on the SO items I included in my question – Steven May 15 '17 at 10:34
  • 1
    For point 2 you would use yo jhipster:upgrade see https://jhipster.github.io/upgrading-an-application/ – Gaël Marziou May 15 '17 at 14:09
  • Yes, you're right, on the SO threads they mention `yo jhipster` where it should be the upgrade tool, thank you for pointing that out @GaëlMarziou – Steven May 16 '17 at 14:48