Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jhipster changing generator options

Tags:

jhipster

I'm new to jhipster, I was wondering that if once I run the "yo jhipster" is there a way to go back and change some of the option selected? Example to enable Compass/SASS.

If I try to install a new generator (by calling "yo" alone), i'm not sure what to install. Compass-extension or Sass ? Or both or something else as well?

Thanks

like image 836
eetawil Avatar asked Apr 13 '15 01:04

eetawil


People also ask

How do I upgrade my jhipster project?

Clean the current project directory. Re-generate the application using the jhipster --force --with-entities command. Commit the generated code to the jhipster_upgrade branch. Merge the jhipster_upgrade branch back to the original branch from where the npx jhipster upgrade command was launched.


2 Answers

You can change the file .yo-rc.json ("useCompass": true, etc) and then run yo jhipster in the root directory. Depends of the change in .yo.rc.json must to rerun entity generators with yo jhipster:entity <name>.

like image 174
alpoza Avatar answered Oct 02 '22 13:10

alpoza


Found the answer on the JHipster site actually...maybe it just got added or simply that I can't read :)

https://jhipster.github.io/creating_an_entity.html (see section Generating an entity a second time)

like image 40
eetawil Avatar answered Oct 02 '22 14:10

eetawil