I haven't documented it perfectly but grunt-ts
can help you with the multiple import problem (https://github.com/grunt-ts/grunt-ts/issues/85#issue-29515541).
What you do is type in ///ts:import=filename
and grunt-ts keeps the generated import
statement in sync as you refactor your project.
You can also load entire folders using the same syntax i.e. ///ts:import=foldername
and even generate an index.ts
for a folder using the same syntax and them import that index.ts
instead of importing the folder everytime.
To get started with grunt-ts
just follow the readme : https://github.com/grunt-ts/grunt-ts#grunt-ts
Advantages :
- faster to get started. Relative paths are hard to type
- easier to refactor (as long as you keep the filenames the same). And when you do change the filenames .. you get compile errors.