Feb 3, 2014 at 5:37 PM
Edited Feb 3, 2014 at 5:38 PM
I'm prototyping a somewhat complex Typescript library for a Dynamics CRM application my team is developing. So far I'm loving the language, but my prototyping is nearing that nasty phase where logistics instead of theory suddenly becomes important.
So our library will consist of several components, something along the lines of this hierarchy:
- Utility Code
- Computer-Generated Data Access Code
- Business Code
Both Utility and Business code "modules" have a nested hierarchy and use the "One-class-per-file" rule. In general I would like these hierarchies to be compiled to a single file each. The Data Access Code on the other hand should be compiled
into many different JS files so that consumers of the libraries can pick and choose which files they need access to.
All of that being said, I know how to invoke the TSC command-line compiler to get what I want. The problem I'm having is setting up Visual Studio 2013 and MSBuild (we're running on a TFS 2012 server) to do this. I started hacking around the CSProj file and
quickly made a mess of the <TypescriptCompile> nodes and... well I am not sure where to go next.
Any guidance on this issue would be greatly appreciated. Thanks!