Giter VIP home page Giter VIP logo

Comments (7)

mshima avatar mshima commented on September 25, 2024 1

Local blueprint is used in project that can be type commonjs.
Generators are type module, we need to use mjs extension or add a package.json with type module in .blueprint dir.

Non local blueprints are packages that we generate as type module. So it can have js extension. js is the preferred extension so we use it.

from generator-jhipster.

mshima avatar mshima commented on September 25, 2024 1

We should add an option extension with 'js' and 'mjs' options, which will default to 'mjs' for local blueprint and 'js' otherwise.

from generator-jhipster.

mshima avatar mshima commented on September 25, 2024

If you prefer mjs extension you can use --no-js option.
Since js is the default now, would make sense to convert to --mjs.

from generator-jhipster.

dwarakaprasad avatar dwarakaprasad commented on September 25, 2024

makes sense, thank you @mshima. Is there any plan in the future to convert the blueprints to typescript.

from generator-jhipster.

mshima avatar mshima commented on September 25, 2024

No plans for typescript blueprints in official blueprints and generate-blueprint command.
I donโ€™t see any advantage in adding the typescript complexity in blueprints.
But itโ€™s possible to create a typescript blueprint.

from generator-jhipster.

dwarakaprasad avatar dwarakaprasad commented on September 25, 2024

We should add an option extension with 'js' and 'mjs' options, which will default to 'mjs' for local blueprint and 'js' otherwise

good suggestion, I will try to address this after the long weekend.

from generator-jhipster.

github-actions avatar github-actions commented on September 25, 2024

JHipster has completed the sample check
.yo-rc.json:
Entities JDL:
Application: successfully generated
Frontend check: skipped
Backend check: skipped
E2E check: skipped

This check uses jhipster info output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.

from generator-jhipster.

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.