Setting up Typescript for an Angular 1.5 application has been a bit of a challenge. To ensure that a TS file can be compiled by gulp without any errors, I have to include the following line:
///<reference path="../../../../typings/angularjs/angular.d.ts" />
The Typings folder is populated using a node module called "tsd".
This means that:
- I need to periodically run "tsd update" to keep everything up-to-date
- In each TS file, I have to specify the relative path to the TS files, which can be quite annoying
Is there a way to automate the process of getting the TSD files and inserting them for gulp compilation?