Support for multiple templates in a single repo
See original GitHub issueWe would like to be able to have a single runnable repo with multiple templates for optional add-ins.
We’ll have a template for a minimal working app, as a ASP.NET Core backend only app. A developer can spin up a new app with just some Web APIs from this. Say this is an Add
and Subtract
API, no database dependencies or client side app.
Another developer wants to spin up a service with a backend + react frontend.
Given the backend code is the same, catering for both these scenarios from a single repo would be we don’t end up with code drift and simplifies template code updating effort.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Multiple templates for Pull Requests on Github
Begin making a pull request and append the URL with: "&template=template_one.md". My example URL looks like: https://github.com/<org>/<repo-name> ...
Read more >Multiple issue and pull request templates
To add multiple issue templates to a repository create an ISSUE_TEMPLATE/ directory in your project root. Within that ISSUE_TEMPLATE/ directory ...
Read more >How to handle a project in git with the same code but ...
First, you are right that managing this in three different repos is ... is with one-click deployments for each type of template build...
Read more >Support templates in multi-repository checkout
I have a shared pipeline which refers to, and needs to check out code from multiple repositories. All of the repositories share a...
Read more >Multi-repository Support Released! - Visual Studio Blog
Support for multiple repositories means you can have up to 10 active Git repositories at once. This allows you to work with a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is possible to have multiple template.json files in the same repo and generate template content for each (we even do that in this repo here https://github.com/dotnet/templating/tree/stabilize/template_feed).
If the templates need to share files between them, it’s possible to customize the sources using the
source
andtarget
properties to indicate where the files should come from and where they should be placed to things that wouldn’t be included in the template by default.Will close this issue while we try those ^ suggestions. Thanks.