I am creating a complex module in TypeScript (parsing PE file structure, similar to what Mono.Cecil does, but in TS/JS and less sophisticated).
The question is how best to put that functionality in file/folder/module dimensions.
I started with structure similar to C#, with each class in its own file, namespaces (modules) corresponding to large sets of more or less independent functionality and living in subfolders.
Now in TypeScript there are several issues with that. Or maybe the issues are with my being stupid?
What's the best way to deal with that?
I am currently using require.js and amd modules to structure code. Each class is in a single file, and all that is needed is a require.js bootstrapper. I dont work with node, so cant comment here, but it may be worth having a look. http://blorkfish.wordpress.com/2012/10/23/typescript-organizing-your-code-with-amd-modules-and-require-js/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With