Code Monkey home page Code Monkey logo

Comments (5)

MInesGomes avatar MInesGomes commented on May 25, 2024

Hi @mraible,

Is it difficult to add option -yesToAll and the path for backend
That would reply yes to all and considered my Backend Path?
Something like?
yo jhipster-ionic:entity MyEntity -yesToAll ../MyBackEnd

With 100 entities is just run that and we have the same as jdl :-)

Example: When I generate backend I get only for the changed entities:

Entity NmsIntegratorServer generated successfully.
Entity NmsIntServerBrand generated successfully.
Entity NmsChgNetwork generated successfully.
Entity NmsAlert generated successfully.
Entity NmsPatientState generated successfully.
Entity NmsAlertReason generated successfully.
Entity NmsAlertLog generated successfully.
Entity NmsAlertPrecedence generated successfully.
Entity NmsChatRead generated successfully.
Entity NmsChatReceived generated successfully.
Entity NmsFamily generated successfully.

I would replace by

yo jhipster-ionic:entity NmsIntegratorServer -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsIntServerBrand -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsChgNetwork -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsAlert -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsPatientState -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsAlertReason -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsAlertLog -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsAlertPrecedence -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsChatRead -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsChatReceived -yesToAll ../MyBackEnd
yo jhipster-ionic:entity NmsFamily -yesToAll ../MyBackEnd

And run it without having to answer nothing it would be almost the same as having jdl :-)

What do you think?

from generator-jhipster-ionic.

mraible avatar mraible commented on May 25, 2024

@Entrecampos I originally tried to do yo jhipster-ionic:entity *, but was unable to capture the asterisk character. It seems it's being swallowed by Yeoman.

I agree that we should have one command that generates all entities. I think import-jdl is the most familiar to people using JHipster, so that's what I'd like to support.

from generator-jhipster-ionic.

MInesGomes avatar MInesGomes commented on May 25, 2024

@mraible Yes it makes sense jdl. But if possible -yesToAll would be great :-)

from generator-jhipster-ionic.

mraible avatar mraible commented on May 25, 2024

@deepu105 I see that import-jdl.js in JHipster is not a generator, so it's not as easy to extend as the entity generator was. Do you know if it's possible to extend import-jdl from JHipster and implement it in Ionic (which is a Yeoman module, not a blueprint). If not, I can probably just copy/paste the whole thing.

Thanks!

Matt

from generator-jhipster-ionic.

mraible avatar mraible commented on May 25, 2024

Fixed by #159.

from generator-jhipster-ionic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.