I am new to browser development, so I have no experience with AMD, CommonJS, UMD, Browserify, RequireJS, etc. I read a lot about them, and I believe that I generally understand the history of JavaScript, but I'm still very confused about how to do everything together.
I have a library written in TypeScript. This is a pure TypeScript library, it does not interact with a browser or browser map, as well as with any node or NPM things.
I also have a TypeScript client application that uses this library. The client application can also use a web structure (e.g. jQuery).
Now, when I compile my two TypeScript files (which we will assume are in separate projects, isolated from each other and built separately), each of them will generate a .js file. In Visual Studio, I need to select AMD or Common as my module loader.
Things are falling apart here. My research tells me that if I want to work on the Internet, I need to either use Browserify or RequireJS. To view the browser, you must first install node on my computer, and then use the command line tool as a post-build step to create the file, and as far as I can tell, this is not available as a NuGet package. Alternatively, I can use RequireJS, but then all the examples stop working. Something is not about doing something on the loading window and instead doing something elsewhere, but nothing that I found really explains well.
, ? TypeScript, , , - , Microsoft.