Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Nancy Module Sub Generator #15

Closed
jchannon opened this issue Dec 17, 2014 · 5 comments
Closed

Nancy Module Sub Generator #15

jchannon opened this issue Dec 17, 2014 · 5 comments

Comments

@jchannon
Copy link
Member

@spboyer do you fancy creating a nancy module, bootstrapper & istatuscodehandler subgenerator?

@spboyer
Copy link
Contributor

spboyer commented Dec 17, 2014

@jchannon you have templates they would be pretty easy to add.

@jchannon
Copy link
Member Author

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
#15 (comment)
.

@sayedihashimi
Copy link
Member

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.

  • Visual Studio item templates
  • Yeoman subgenerators
  • Sublime templates
  • Anywhere else

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?

@nosami
Copy link
Contributor

nosami commented Dec 18, 2014

👍 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.

@peterblazejewicz
Copy link
Member

old topic, non-closed when Nancy template landed.

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

No branches or pull requests

5 participants