The bugger about writing a book on an open source project is that it keeps developing while you are writing, proofing, copyediting and finally printing. This strategy can and does bite you on the arse, and has done me frequently. Two cases spring to mind:
- A book on Microsoft’s .NET My Services, codename Hailstorm back in 2001. FOur of us wrote it in six weeks based on the latest bits in time for PDC, met the deadline and got it published. Then found out as the book went to the show that Microsoft had completely axed the entire project.
- A book on the open source wiki software Zope which spent so long trying to catch up with the terrifyingly frequent software releases being made to Zope at the time, that the whole project imploded.
It’s not a surprise that there are already some addenda for ‘TypeScript Revealed’. It’s just disappointing that TypeScript v0.8.2 was released the same day as the book was and includes a couple of main new features which I would have certainly included were they available at the time.
That said, that’s why I have a facebook page for the book so you can check up on links for the latest TypeScript articles and this blog so I can give you the heads up on the new stuff and any new github projects out there I would have included had I known of them at the time.
- The Visual Studio extension for TypeScript now supports Compile-on-Save in addition to the Compile-as-Build-Step functionality it already supported. This works in much the same way as Compile on Save works if you have Mads Kristensen's Web Essentials 2012 add-in for Visual Studio already installed. You can find the options for CoS by selecting Options>Text Editor>TypeScript>Project from the Tools menu. The compile-on-save functionality has also been improved in the NPM-based compiler when using the -watch flag. (Note I'm not a node.js user so I can't say by how much).
- Adding TypeScript as an MSBuild step into existing project has become slightly easier. v0.8.2 now comes with a new MSBuild targets file meaning rather than call the compiler you can express the call as MSBuild XML. The doesn't make calling the compiler less valid; it just tidies up the MSBuild file. You can find Microsoft.TypeScript.targets at C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\TypeScript. Again, a full article will be forthcoming shortly, but you'll find brief details on the TypeScript wiki here.
- The compiler service can now be replaced in the TypeScript for Visual Studio 2012 plugin. This makes it easier to leverage the Visual Studio TypeScript extension with newer compiler builds from CodePlex or from experimental forks. Details of how to do this can be found on the TypeScript blog here.