-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Visual Studio 2015/2017 .tsproj project type suggestion #14533
Comments
Thanks for the feedback. This is definitely something we've been discussing for a while, and hope to add at some point. The idea of a "JavaScript library" that can be built then referenced across projects in the way a DLL or WinRT component can is appealing. For right now, have you looked into the Node.js templates available (if the Node.js workload is installed in VS 2017, or by installing the NTVS extension as part of VS 2015)? As you mention above, it's quite common to use Node.js in the process of building libraries (for minification, bundling, etc.), so being an actual Node.js project is a natural place to host a project that produces a JavaScript library. It can also spin up a simple Node.js hosted server (e.g. Express, or http-server) for hosting/debugging, avoiding the need for IIS Express or C# assets. Project to project references and managing build order within the tooling are still missing, but that does get you some of the way there. We'll definitely be working towards a better solution long term though. |
I'd like a typescript lib project; happy to then build the output js and map files into the scripts folder of my other projects that use it. Typescript Node project sorta works... |
For example Babylon.js uses .csproj for this, which isn't ideal https://github.com/BabylonJS/Babylon.js |
This issue has been on User Voice since Oct-2012. And in fact is the suggestion with the second most number of votes. So I would take comments about this being fixed with a pinch of salt. Visual Studio related work is generally not a high priority for TypeScript. |
The old UserVoice issue was closed - the new UserVoice issue is here. I think a typescript-specific project type would be useful (with the typescript configuration in one or more .tsconfig files), but I also think there's a strong need for a web UI project type, which also isn't supported in VS 2017 currently. |
Added a comment on the issue on user voice which I'm reproducing here: There should ideally be two JavaScript/TypeScript project types: 1. A Library Project TypeCurrent workaround is to use a C# or ASP.Net Web Application project type. Problems
2. A Web Service Project TypeCurrently handled by the NodeJS Web Application (NTVS) project type Problems This is a serious concern for us. Performance improvements to the TypeScript compiler are vastly overshadowed by time spent in compiling the "workaround projects" in Visual Studio. I just want to "Add -> New Project -> Library|Web Service and get on with it, without having to suffer performance issues and having to carry along excess baggage required by C# and ASP.Net. |
seems this is a dupe of #11? |
can someone explain to me why there is still no typescript project type? first issues about it were raised 2014, and typescript is basically web standard by now. ignoring typescript - developed by microsoft btw - is a bit ridiculous. nodejs projects are just a workaround, no solution. |
We do have a JavaScript project type now. The extension is .esproj and it can be used as a library for ASP.Net, but it's still very early and feedback on scenarios where it isn't doing what people want will be appreciated. |
@joj Is there example projects showing an .esproj as library for ASP.Net project? |
What I am really completely missing in VS(15/17) is a pure TypeScript project (without C# or anything else).
Why I am missing it?
The HTML App with TypeScript project is great, it allows me to develop, debug, sync repos, run gulp tasks, everything is perfect (except debugging over Chrome Debugging Protocol which is quiet complicated to achieve - in 2015, 2017 probably changes this, but I didn't try yet), but...
As I am focusing on front-end only I don't need anything else in background. I am not developing IIS modules and my back-end is separated in a different solution so I don't need C# or Asp.Net at all. Compilation of the C# code slows down build process dramatically (especially when I have multiple projects with some dependencies in the solution) and is completely useless for me. I would say developers focusing on Angular apps developing in TS in VS will agree.
So what I am basically missing is a project extension (.tsproj would sounds good :) which will allow me to:
The text was updated successfully, but these errors were encountered: