-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Extend JHipster's Entity Sub-Generator #109
Conversation
@pvliss I tried this tonight and it seems to fail because it wants to load the JHipster config from the current directory.
The current directory is my Ionic app and it doesn't have any JHipster config. Is it possible to configure it to look for the file based on the contents of
|
@mraible I actually only tried running |
Hmmm. So it seems to me that ionic4j does not automatically pick up the entities from the backend dir and I can not find any compose functionality from the app to the entity sub-gen, so basically my test was worthless. I was under the impression that it did automatically pick up the entities from backend but did not really check either tbh. Sorry for misleading you and will check further to see if it can actually be used that way. So currently you are adding the entities one by one? |
Yes, entities can only be generated one-by-one.
Ideally, there’s an “import-jdl” command or something like “yo jhipster-ionic:entity *” that generates all of them. One by one is tedious.
… On Jun 26, 2019, at 07:51, Panayiotis Vlissidis ***@***.***> wrote:
Hmmm. So it seems to me that ionic4j does not automatically pick up the entities from the backend dir and I can not find any compose functionality from the app to the entity sub-gen, so basically my test was worthless. I was under the impression that it did automatically pick up the entities from backend but did not really check either tbh. Sorry for misleading you and will check further to see if it can actually be used that way. So currently you are adding the entities one by one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
OK, so I think I found a workaround by adding a separate Also tried using yeoman's
|
Did you give it a spin?
The downside is that you are more dependent on the jhipster entity sub-gen but I would not say that is a big problem in this particular case 😄 .You will always be to find a way around any upcoming issues in the future. The upside of course is much less code to maintain and test. BTW, the tests seem to be failing due to git checkout failure:
|
@pvliss There are issues with how I have Travis currently configured. It expects PRs to have branches in the main repo instead of contributor's forks. See .travis.yml#L50 and 01-install-jhipster-stack.sh#L37. I don't see any Travis convenience variables we can use for this value. |
@pvliss Can you please rebase? Also, I prefer 2 spaces for JavaScript, so please use 2 spaces (not 4) in your branch. |
@mraible Would you mind if I create a new proper PR to clean commits, restore formatting and also allow for the CI tests to be executed properly? |
@pvliss That's fine. |
78aee86
to
af30334
Compare
fdb1a68
to
af30334
Compare
@mraible Would you like me to rebase again? |
af30334
to
0a4db62
Compare
Just rebased. Let wait and see |
@pvliss Can you please rebase this PR to use the latest |
0a4db62
to
aef1623
Compare
@mraible Rebase is done. I did not have the time to test manually though and CI tests seem to fail at e2e tests but not sure if related to the changes of this PR. Can you please check? |
Thanks for making Ionic for JHipster drastically easier to maintain @pvliss! |
Glad to be of help!!!
Will try to find sometime and look into it. I suppose you would prefer ionic4jhipster to remain a module instead of converting it to a blueprint, right, as with blueprint it would be much simpler? |
I think it works better as a module because it needs to invoke Ionic CLI as part of the process and it’s unlikely to be the only UI for the JHipster app.
… On Aug 17, 2019, at 12:31, Panayiotis Vlissidis ***@***.***> wrote:
Thanks for making Ionic for JHipster drastically easier to maintain @pvliss!
Glad to be of help!!!
@pvliss Do you think we can do something similar to this to support an import-jdl command? #29
Will try to find sometime and look into it. I suppose you would prefer ionic4jhipster to remain a module instead of converting it to a blueprint, right, as with blueprint it would be much simpler?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
No description provided.