4,031 karma · joined August 5, 2011
The tsc executable does have a -watch flag itself for incremental compilation, which presumably takes into account these dependencies. So may be the solution is to use that outside of gulp (since gulp-tsc doesn't seem to be able to launch the compiler in watch mode).
Another question: our TypeScript compile-times are approaching 5/6 seconds whenever gulp watch triggers. Imo this is too long for a workable frontend workflow. Did you guys find a way to incrementally compile TS with gulp?
Looks like it's time to start reading and comparing.
Let me put it another way: when my CC issuer detects an anomaly, they block the charge and contact me rightaway to resolve it. I don't fear anything because I know they'll do the right thing and keep me in the loop. Why can't PayPal have such a symbiotic relationship with their customers, rather than instilling fear?
> I was so afraid that PayPal would freeze my account that I called to let them know that I was going to sell a book and that I might have a few sales.
You know something's wrong when your customers are fearing you. Seriously, how did PayPal end up like this?
Originally developed at MIT, now freely available and maintained as open-source lib. It offers advanced (partial) matching at the UI level.
Wonder why that is, are there cases that would otherwise break?
Turns out that using script-tags is somewhat problematic, but as a comment points out, data-attributes could work.
I'll have to check on your compile suggestion. I tried lots of things, including using the postLink etc. Do you have an example?
The real trigger for introducing RequireJS was our need to optimize our JS by concatenating and minifying it. And to do that in the right order, you need to know your dependencies very well. That's when I decided I didn't want to do that by hand. Not now, and not in the future. So I took https://github.com/tnajdek/angular-requirejs-seed as an example and started defining modules and dependencies. Now I can easily run the r.js optimizer as a build step before releasing and now I'll get a correct and concatenated/minified JS for production.
The nice thing is that RequireJS not only manages our Angular modules (defined in separate files), but also their dependencies on vendor scripts (JQuery, Hammer.js etc.) I really have the feeling I'm in control again.