question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for multiple templates in a single repo

See original GitHub issue

We 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mlorbetskecommented, Nov 8, 2018

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 and target 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.

0reactions
janakacommented, Nov 13, 2018

Will close this issue while we try those ^ suggestions. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found