0

Visual Studio can compile TypeScript project (even one file on save) without any <reference> tags.

Can I compile all *.ts files some way from command line (tsc.exe)? Simple, for edit TypeScript in WebStorm or in other IDEs.

KhodeN
  • 353
  • 1
  • 3
  • 10
  • I am using a single reference.ts file, which just contains the references to the .ts files. I am calling tsc on that (until i set up grunt-ts). tsc References.ts --out main.js --sourcemap --removeComments – A. K-R Mar 27 '14 at 11:57

1 Answers1

1

no. tsc.exe / tsc does not accept file globs. You can use an external tool to pass file globs through e.g. https://github.com/grunt-ts/grunt-ts

basarat
  • 261,912
  • 58
  • 460
  • 511
  • 1
    The only alternative to this is to call `tsc` with the appropriate list of files, so grunt-ts is much, much easier than manually writing the `tsc` call. – Fenton Mar 27 '14 at 09:46