typescript-ruby / typescript-rails

An asset pipeline wrapper for the TypeScript language
MIT License
255 stars 29 forks source link

tsconfig.json #37

Open amritk opened 8 years ago

amritk commented 8 years ago

Is there any way to get this to use the tsconfig.json in the project base?

bdrazhzhov commented 8 years ago

Hello @amritk,

Could you describe more your idea? How do you plan to use tsconfig.json? How could this gem help you with tsconfig.json integration?

amritk commented 8 years ago

the tsconfig.json would tell it which files to reference so I don't need the reference line at the top of every file:

/// <reference path="../../definitions/hc.d.ts" />
Danilo-Araujo-Silva commented 7 years ago

@bdrazhzhov, I have the same issue. And the problem is if we cannot use tsconfig.json we cannot integrate Angular 2, for example. The truth is, and it was a great fight, I would like to use on a typescript file call another one, importing it. But when typescript-rails transpile the file it can find the another one, because, looks like, the file is transpiled on a tmp directory. I tried to pass several arguments to the compiler but no sucess. And more, the arguments that could solve the problem to me, pointing a tsconfig.json to the compiler, simply not works, because typescript says that we cannot point tsconfig.json files when we target a typescript file, because it is ambiguous.

I was trying to create some more complex project with typescript and rails but without this feature we simply can't do this. This feature is very very necessary in my opinion. Could we take a look on this? To use Angular 2 the only way that I found is creating an API only rails project and a angular-cli project, for example.

bdrazhzhov commented 7 years ago

Hi @Danilo-Araujo-Silva,

But right now I have no time for this gem support. I accept PRs from other people only which fix some issues or add new features.