Closed jchannon closed 7 years ago
@jchannon you have templates they would be pretty easy to add.
Ok cool
As another thought I already have templates in the sublime plugin. Would you be ok if I copied some of your templates to the sublime plugin? https://github.com/OmniSharp/omnisharp-sublime/tree/master/templates
On Wednesday, 17 December 2014, Shayne Boyer notifications@github.com wrote:
@jchannon https://github.com/jchannon you have templates they would be pretty easy to add.
Reply to this email directly or view it on GitHub https://github.com/OmniSharp/generator-aspnet/issues/15#issuecomment-67387774 .
Here is what I'm thinking, it would be great if we had a single source for templates. We can create a build process which takes the single source and creates templates for the following.
I'm thinking that this could be the repo for that. Perhaps we can start with what we have. I noticed that the code in this repo uses <%= namespace %>
for replacements but in the sublime case it uses ${namespace}
. Perhaps we can create a build script which we can run which takes the sources from here and produces a folder which contains the sublime templates. The idea is to update a single set of templates and have them fan out to all the places where templates are needed. I think this should be pretty straight forward for item templates, project templates are another story.
If you guys think this is a good idea then I believe we should start working on that automation step that works on the translation. If it's ok to run the scripts from a windows machine I can start working on the script which drives the conversions. I'll use PowerShell. We can hook up appveyor so that we can develop on whatever machines we want and have it churn out the deliverable. If we need to be able to run the script on xplat then we can look at another tech and I'll likely be slower on contributing to that.
Thoughts?
:+1: for this idea.
Check out my C# templates/snippets for emacs here https://github.com/nosami/yasnippet-csharp
If we had a common area to put these, I'd be tempted to have omnisharp server do the marker substitutions.
old topic, non-closed when Nancy template landed.
@spboyer do you fancy creating a nancy module, bootstrapper & istatuscodehandler subgenerator?