Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make this repo a template repo #247

Open
tobiasdiez opened this issue Feb 12, 2023 · 6 comments
Open

Make this repo a template repo #247

tobiasdiez opened this issue Feb 12, 2023 · 6 comments

Comments

@tobiasdiez
Copy link

https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository

so that one could easily start a new module etc by simply using the "Create repo from template" option.

@manniL
Copy link
Member

manniL commented Feb 12, 2023

That might be a bit difficult because the starter repo contains several starter templates.

@tobiasdiez
Copy link
Author

Yes, that's a bit of a disadvantage of the current organization. However, when creating a repo from a template, one can copy all branches (see point 7 in https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template). Afterwards, one could rename the branch one wants to main and make it the default branch, then delete all branches one doesn't need.

Copy link
Member

atinux commented Mar 13, 2023

Don't you think it is a bit longer than creating the repo on GitHub -> Clone it -> nuxi init X -> git push?

Otherwise we may have to split each branch to it's own repo.

Or.... give the possibility on nuxt.new nuxt/nuxt.new to connect with GitHub (OAuth) to create a repository from a template 👀

@manniL
Copy link
Member

manniL commented Mar 13, 2023

I like the GitHub connection idea! 👏🏻

Copy link
Member

atinux commented Mar 13, 2023

Good news, the nuxt.new repository is open source and open to anymore to contribute 😊

I made https://github.com/Atinux/discuss to show how to make a Nuxt 3 app with GitHub oauth if it can help.

@tobiasdiez
Copy link
Author

The main advantage of using github templates over nuxi init is that one gets the git data with it, so that's relatively straightforward to pull improvements in the starter repo. Another small plus is that github would write "generated from https://github.com/nuxt/starter", which gives free advertisement to the starter repo.

But I agree that there are not many big advantages.

Otherwise we may have to split each branch to it's own repo.

This sounds like the most viable/easy approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants