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
make Heroku sub generator blueprint aware #11919
make Heroku sub generator blueprint aware #11919
Conversation
Thanks for approving. I have problem applying it to the micronaut blueprint (although it worked once during testing this PR). when doing
It looks like some trivial thing I forgot here, but I don't see it. I tried already to replace the heroku subgen in the blueprint with basically a noop generator, but still no luck. I also did change the heroku subgen in the main generator with a subgen that works for micronaut (e.g. service), but when creating the heroku gen in the blueprint via I did |
I also encounter strange First step:
Second step:
This second step deletes 38 folders from If I run this second step in different order:
then result is the same, 38 folders are deleted from Third step:
This restores those 38 deleted folders in |
Those npm link problems are npm 6 problems and can be fixed by running @atomfrede if that problem persists post you updated branch. |
Thanks I did some npm ci but before doing npm link. Will try it later today. |
@mshima No luck with doing |
Seems to be working:
The steps I've done:
Created a default jhipster project at another folder and run |
The order should be: What causes problems: |
🎉 Thanks Marcelo for the detailed explanation. I did one npm ci to much inside micronaut blueprint. Now it works. |
This makes the Heroku sub generator extend BaseBlueprintGenerator, such that blueprints can overwrite e.g. generated property files to match their own configuration. A concrete use case can be found in the micronaut blueprint where e.g. the datasource properties and the procfile is different from the main generator.
Please make sure the below checklist is followed for Pull Requests.
All continuous integration tests are green
Tests are added where necessary
Documentation is added/updated where necessary
Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed