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

Add support for solution/project scaffolding #7

Open
BalassaMarton opened this issue Aug 26, 2021 · 0 comments
Open

Add support for solution/project scaffolding #7

BalassaMarton opened this issue Aug 26, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@BalassaMarton
Copy link
Contributor

This came to mind while developing our internal SDK. If you look at a monorepo like dotnet/runtime, when one needs to add a new solution, there are steps that go beyond dotnet new. These include creating Directory.Build.props files, adding repo-level properties, creating standard directories like src, test, benchmarks, etc. This could be streamlined with a new command that can at least create the files and directory structures.

Syntax

please scaffold <TemplatePath> <TargetPath> [--<VariableName> <VariableValue>]*

Behavior

  1. Take the directory at TemplatePath and copy it to TargetPath
  2. Recursively replace the supplied variables with their values using some lightweight templating engine like Handlebars.Net

Notes

Not sure how to accomplish the 'add repo-level properties' part, eg. when scaffolding a new library called EpicLibrary, I want to add an EpicLibraryVersion property to some repo-level .props file. We could add a mechanism similar to Regedit's .reg files, however this is probably out of scope for a first version.

@BalassaMarton BalassaMarton added the enhancement New feature or request label Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant