OmniSharp / generator-aspnet

yo generator for ASP.NET Core
877 stars 168 forks source link

Create TypeScript JSX Sub-generator #540

Closed scottaddie closed 5 years ago

scottaddie commented 8 years ago

In VS 2015, there is an item template available for a TypeScript JSX (.tsx) file. This project already provides subgenerators for TypeScript (.jsx) and TypeScript (.ts) files, so it would seem to make sense to add this. Any interest in adding support for it here? If so, I'll submit a PR for it.

peterblazejewicz commented 8 years ago

Can the source of this be somehow found? The sources here are somehow based on existing templates from variety of sources.

scottaddie commented 8 years ago

Unfortunately, the item templates aren't yet open source (see https://github.com/aspnet/Templates/issues/32), so there's not much we can do. My proposal is to simply create a .tsx file with the following comment:

// A '.tsx' file enables JSX support in the TypeScript compiler, 
// for more information see the following page on the TypeScript wiki:
// https://github.com/Microsoft/TypeScript/wiki/JSX

This is what the item template in VS 2015 currently produces. Thoughts?

peterblazejewicz commented 8 years ago

:+1: Go ahead

sayedihashimi commented 5 years ago

We are shutting this repo down, it's been replaced with dotnet new.