ToddThomson / Ts2Js

A simple, fast, extendable Typescript compiler supporting incremental and type checking builds.
Other
1 stars 0 forks source link

I can't get Compilation to work...do I need TypeScript 2.1? #4

Open seant-ca opened 7 years ago

seant-ca commented 7 years ago

I am having issues with ts2js...I don't think I can get the compiler to work...I don't get any files to be emitted...I am testing from a Windows machine although this shouldn't make a difference because I can get regular typescript projects to compile, is it only the latest version of typescript supported?

seant-ca commented 7 years ago

In the results object, emitSkipped: false, so I assume this means the files should be emitted but I can't seem to find the emitted files...

ToddThomson commented 7 years ago

@seansat Ts2Js is a node package that compiles typescript ( files, projects ) to memory. Please check out the Ts2Js Wiki on how to use it.

If you still can't get Ts2Js to work after reviewing the Wiki, please check out the TsBundler and TsMinifier to see how it works with Ts2Js.

seant-ca commented 7 years ago

So it compiles to memory meaning I have to do the actual emitting/writing of the compiled output? Is that what you mean?

ToddThomson commented 5 years ago

@seant-ca I realize that this issue is old. I am currently looking at Ts2Js to see whether it should emit files to disk ( follow noEmit TsConfig option ). I have added this to release 3.

ToddThomson commented 5 years ago

@seant-ca The Ts2Js compiler will only support in-memory transpilation. As Ts2Js is part of the TsTools project, you will be able to use TsProject which provides support for streaming file output which can be "gulped". TsProject uses Ts2Js to compile Typescript projects.