starter icon indicating copy to clipboard operation
starter copied to clipboard

integration templates (community templates?)

Open sor4chi opened this issue 2 years ago • 4 comments

This is just my proposal and I would like opinions and discussion.

Right now, I think create hono basically serves as a basic foundation for each runtime.

I am wondering if this could be extended to allow access to community templates authenticated by Hono org or to provide samples of various integrations.

For example, vite has a lead from create-vite to create-vite-extra and create-electron-vite, and also provides a runtime that extends the base template and an integration template with other frameworks.

sor4chi avatar Jan 02 '24 16:01 sor4chi

@sor4chi

That's interesting, but first, something like create-hono-extra doesn't exist right now, so I think we can't proceed. If someone creates such a thing, it could be integrated into create hono.

yusukebe avatar Jan 02 '24 20:01 yusukebe

Since we want to use the Create Hono Hook mechanism like %%PROJECT_NAME%%, we may consider a simpler method, such as npm create hono [external-repository-url] to bring an external repository at the same time as the create-hono hook.

sor4chi avatar Feb 02 '24 04:02 sor4chi

@sor4chi

Sounds good. I like that with like a --external option:

npm create hono --external https://github.com/....

yusukebe avatar Feb 02 '24 13:02 yusukebe

That looks better.

I'm sure that as more Hooks are added to create-hono in the future, the community template can follow suit!

sor4chi avatar Feb 04 '24 06:02 sor4chi