cli icon indicating copy to clipboard operation
cli copied to clipboard

Create `create-template` in AsyncAPI organization

Open jonaslagoni opened this issue 4 years ago • 26 comments

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

jonaslagoni avatar Jul 18 '21 16:07 jonaslagoni

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

magicmatatjahu avatar Jul 19 '21 07:07 magicmatatjahu

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? 🤔

jonaslagoni avatar Jul 26 '21 08:07 jonaslagoni

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

magicmatatjahu avatar Jul 26 '21 09:07 magicmatatjahu

This issue has been automatically marked as stale because it has not had recent activity :sleeping: 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 :heart:

github-actions[bot] avatar Sep 25 '21 00:09 github-actions[bot]

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

derberg avatar Dec 22 '21 09:12 derberg

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

That could be an idea, yes!

jonaslagoni avatar Dec 22 '21 11:12 jonaslagoni

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

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 :heart:

github-actions[bot] avatar Apr 22 '22 00:04 github-actions[bot]

shouldn't we move it to CLI repo?

derberg avatar Apr 26 '22 16:04 derberg

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

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 :heart:

github-actions[bot] avatar Aug 25 '22 00:08 github-actions[bot]

We should yes 😄 @derberg I don't have permissions for it 🙂

jonaslagoni avatar Sep 13 '22 15:09 jonaslagoni

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

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 :heart:

github-actions[bot] avatar Jan 12 '23 00:01 github-actions[bot]

I think we should follow the same direction that will be done with https://github.com/asyncapi/cli/pull/418

derberg avatar Apr 03 '23 16:04 derberg

@derberg @jonaslagoni can I work on this?

Shurtu-gal avatar May 29 '23 13:05 Shurtu-gal

yeah, but problem is not the implementation, we need a clear definition of the project that we would like to have generated with this new command. Some brainstorming session is kinda needed

derberg avatar Jun 28 '23 17:06 derberg

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

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 :heart:

github-actions[bot] avatar Oct 27 '23 00:10 github-actions[bot]

Still Relevant 🤝

Shurtu-gal avatar Oct 28 '23 05:10 Shurtu-gal

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

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 :heart:

github-actions[bot] avatar Feb 27 '24 00:02 github-actions[bot]

Still relevant 🤝

Shurtu-gal avatar Feb 27 '24 08:02 Shurtu-gal

I want to work on this. :)

Thank you @Amzani for accepting the suggestion for sumitting this issue for Q3 Bounty Program. Here is my past experience in CLI and Past Bounty Issues:

  • https://github.com/asyncapi/cli/pulls?q=is%3Apr+author%3AAayushSaini101+is%3Aclosed
  • https://github.com/asyncapi/cli/pull/1399 [ Maintainer Onboarding task]
  • Created a new CLI command https://github.com/asyncapi/cli/pull/1413 Last Completed Bounty Completed Issue:
  • https://github.com/asyncapi/generator/pull/1061 [Advanced]
  • https://github.com/asyncapi/community/pull/1120 [ Medium]
  • https://github.com/asyncapi/community/pull/1155 Doc

AayushSaini101 avatar Jun 06 '24 12:06 AayushSaini101

Hi @derberg @jonaslagoni I would love to work on this issue, actually I am developing a similar kind of npm package https://github.com/DhairyaMajmudar/majirya-cli

This package is a CLI Tool which simplifies mern stack and T3 stack web development.

DhairyaMajmudar avatar Jun 11 '24 03:06 DhairyaMajmudar

Hi @DhairyaMajmudar @AayushSaini101 was the first to express his interest in working on this issue. Feel free to pick the other issues in the project.

Thanks

Amzani avatar Jun 11 '24 08:06 Amzani

Sure looking forward to apply for an another issue, thank you : )

DhairyaMajmudar avatar Jun 11 '24 08:06 DhairyaMajmudar

We can implement a command that is asyncapi init that will generate a template for the user, and we have already have template of template structure https://github.com/asyncapi/template-for-generator-templates we can simply use it @Amzani @Souvikns

AayushSaini101 avatar Jun 16 '24 06:06 AayushSaini101

Bounty Issue's service comment

Text labels: bounty/2024-Q3, bounty/advanced, bounty/coding First assignment to third-party contributors: 2024-06-21 00:00:00 UTC+12:00 End Of Life after: 2024-07-31 23:59:59 UTC-12:00

@asyncapi/bounty_team

The Bounty Program is not a Mentorship Program. The accepted level of Bounty Program Participants is Middle/Senior.
Third-party contributors should coherently articulate how they are going to approach the resolution process when expressing a desire to work on this Bounty Issue.

aeworxet avatar Jun 17 '24 12:06 aeworxet

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

AayushSaini101 avatar Jun 18 '24 07:06 AayushSaini101

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.

aeworxet avatar Jun 20 '24 13:06 aeworxet

:tada: This issue has been resolved in version 2.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Jul 12 '24 14:07 asyncapi-bot

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

aeworxet avatar Jul 15 '24 00:07 aeworxet

Since @Amzani is vacationing image

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

aeworxet avatar Jul 16 '24 07:07 aeworxet

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

Souvikns avatar Jul 16 '24 08:07 Souvikns