4,032 karma · joined January 16, 2015
@drosenwasser on Twitter.
DanielRosenwasser on GitHub.
If you're writing a project that won't be consumed by anyone as a library (e.g. command line tool), it makes sense to make that devDependency.
While we did write tutorials using Typings, that content will change to use npm by our next release. Our guides are pragmatic, and are meant to get you working with TypeScript today. Making users use nightly releases would've been a major pain.
Let me know how that ends up working out!
[1]: https://github.com/TypeStrong/ts-loader [2]: https://github.com/s-panferov/awesome-typescript-loader
Give that a shot if you're looking into that sort of workflow.
Your .js files should typically be relative to each other, so unless you're using absolute paths (which you usually shouldn't!), this hasn't been a problem for other users. Is there something that I'm missing?
I also wouldn't say TypeScript strives to focus on OO features - we try to be a type system that works well for JavaScript programming as it exists, while paving the way for the future. We don't even use classes in the compiler!
Also like you mentioned, we try hard to work well with many other frameworks and I think that will show. Angular 2, Dojo, Ionic, RxJS, and others are even written in TypeScript and provide a pretty great experience.
As a brief aside, TypeScript could help catch this sort of thing with its `--noImplicitAny` flag turned on.
https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
By targeting CommonJS and using Browserify, you see a nice decrease. I've sent out a pull request since finding this.
https://github.com/samccone/The-cost-of-transpiling-es2015-i...
[1] https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
See
What kinds of gaps of knowledge do you feel there are in using the two together?