Skip to content

Create create-template in AsyncAPI organization  #337

Closed

Description

@jonaslagoni

Reason/Context

Stumbled upon this and thought it would be perfect for the generator. We could offer a way to use the init function which will allow people to more quickly setup new templates.

By creating create-template in the AsyncAPI scope we can do the following example commands:

  • npm init @asyncapi/template --react
  • npm init @asyncapi/template --nunjucks
  • npm init @asyncapi/template

Description

This will significantly speed up the process of creating new ones and make it more accessible for people. This is similar to what React have - https://github.com/facebook/create-react-app

Activity

  1. added
    enhancement
    on Jul 18, 2021
  2. magicmatatjahu commented on Jul 19, 2021

    @magicmatatjahu
    Member

    I think that we should move this issue to the CLI repo. What do you think @jonaslagoni?

  3. jonaslagoni commented on Jul 26, 2021

    @jonaslagoni
    MemberAuthor

    I think that we should move this issue to the CLI repo. What do you think @jonaslagoni?

    I am not sure the CLI will be able to do this in a way it makes sense. Cause otherwise, we would need to run something like npm init @asyncapi/cli --template --react instead 🤔 Not sure we want to overcomplicate it? The @asyncapi/template repo could of course be used by the CLI repo to enable it natively.

    Another thought is whether npm init would be needed if it can be done through the CLI? 🤔

  4. magicmatatjahu commented on Jul 26, 2021

    @magicmatatjahu
    Member

    We can reuse the https://github.com/asyncapi/create-glee-app pattern to create the template for templates (LOL 😄 ) and then we can even use npx:

    npx @asyncapi/template --react

    Another thought is whether npm init would be needed if it can be done through the CLI? 🤔

    No, but then we should have option to generate template without AsyncAPi doc, to reuse our generator.

    npx @asyncapi/cli generate --template @asyncapi/template -p engine=react

    or something like that

  5. github-actions commented on Sep 25, 2021

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity 😴
    It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
    Thank you for your contributions ❤️

  6. derberg commented on Dec 22, 2021

    @derberg
    Member

    we already have template for templates, why not rework it to support it, I like the idea

  7. jonaslagoni commented on Dec 22, 2021

    @jonaslagoni
    MemberAuthor

    we already have template for templates, why not rework it to support it, I like the idea

    That could be an idea, yes!

  8. github-actions commented on Apr 22, 2022

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity 😴

    It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

    There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

    Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

    Thank you for your patience ❤️

  9. derberg commented on Apr 26, 2022

    @derberg
    Member

    shouldn't we move it to CLI repo?

  10. github-actions commented on Aug 25, 2022

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity 😴

    It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

    There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

    Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

    Thank you for your patience ❤️

  11. 27 remaining items

  12. moved this to No Assignee in Microgrant Programon Jun 17, 2024
  13. AayushSaini101 commented on Jun 18, 2024

    @AayushSaini101
    Collaborator

    The current command to generate the glee project is asyncapi new glee --name , and we need to generate only for react engine template because it is more efficient. In that case, we can introduce the new command that is :
    asyncapi new template --name .
    and the structure of the template will be:

    asyncapitemplate
      -->template
     ------>index.js 
      --->package.json
    

    Reference template format for react engine: https://www.asyncapi.com/docs/tools/generator/template-development. thoughts @peter-rr @jonaslagoni I will create a PR after that

  14. aeworxet commented on Jun 20, 2024

    @aeworxet
    Contributor

    Bounty Issue's Timeline

    Complexity Level Assignment Date (by GitHub) Start Date (by BP Rules) End Date (by BP Rules) Draft PR Submission Final PR Merge Start Final PR Merge End
    Advanced 2024-06-18 2024-07-01 2024-08-25 2024-07-21 2024-08-11 2024-08-25
    Please note that the dates given represent deadlines, not specific dates, so if the goal is reached sooner, it's better.
    Keep in mind the responsibility for violations of the Timeline.
  15. moved this from No Assignee to In Progress in Microgrant Programon Jun 20, 2024
  16. moved this from To Triage to Backlog in CLI - Kanbanon Jul 5, 2024
  17. moved this from Backlog to Done in CLI - Kanbanon Jul 12, 2024
  18. moved this from In Progress to Completed in Microgrant Programon Jul 12, 2024
  19. asyncapi-bot commented on Jul 12, 2024

    @asyncapi-bot
    Contributor

    🎉 This issue has been resolved in version 2.1.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  20. aeworxet commented on Jul 15, 2024

    @aeworxet
    Contributor

    @Amzani
    Please confirm the technical resolution of this Bounty Issue or delegate this action to other Maintainers.

  21. aeworxet commented on Jul 16, 2024

    @aeworxet
    Contributor

    Since @Amzani is vacationing
    image

    @Souvikns, @Shurtu-gal, can one of you please confirm the technical resolution of this Bounty Issue?

  22. Souvikns commented on Jul 16, 2024

    @Souvikns
    Member

    @aeworxet @AayushSaini101 has resolved this issue by merging #1476.

  23. aeworxet commented on Jul 16, 2024

    @aeworxet
    Contributor

    Bounty Issue Is Completed 🎉

    @AayushSaini101, please go to the AsyncAPI page on Open Collective and submit an invoice for USD 400.00 with the expense title Bounty cli#337, tag bounty, and full URL of this Bounty Issue in the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bountyenhancementreleased

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions