electricessence / TypeScript.NET

A JavaScript-Friendly .NET Based TypeScript Library (Moved)
https://github.com/electricessence/TypeScript.NET-Core
Other
251 stars 36 forks source link

Javascript files in source directory #25

Closed lifenautjoe closed 8 years ago

lifenautjoe commented 8 years ago

Shouldn't all the compiled TypeScript files reside on dist?

electricessence commented 8 years ago

I've struggled with how to appropriately do this. Any suggestions for improvement are hugely welcome.

dist DOES have all the compiled files. But when you are looking to use the TypeScript files in your project, it seems easier to point to source.

So if you were writing TypeScript, you'd:

import Queue from 'node_modules/typescript-dotnet/source/System/Collections/Queue'

And then any code you wrote would work both within the TypeScript compiler and your compiled code.

Again, this may be the wrong way to do this, but so far it's the only way I've been able to figure out that accommodates TypeScript and different JavaScript distributions.

electricessence commented 8 years ago

Also note that the JS files in the source directory use UMD modules so they can be easily imported from NodeJS or RequireJS, or... whatever...

electricessence commented 8 years ago

@thefabulousdev, feel free to reopen if you want to discuss more.