Trying to like angularjs 2

Trying to make angularjs 2 work, and it’s failing miserably in rails. Trying to make babel and typescript modules to co-operate (since part of the project is written with es6). FAIL Referencing ts/es6 modules from typescript module. FAIL HACK to workaround [code] /// [/code] Battling between different ”define” variants (interestingly various incompatible ”define” variants exist…)….

Read more

Boxing match: traceur vs babel

Evaluating traceur and babel in rails environment to see how well they behave in converting simple Ecmascript 6 file. Our competitors today are traceur-rails sprockets-traceur sprockets-es6 Notes: traceur-rails works for some cases but fails for ”let” statement sprockets-traceur seems to fare better than traceur-rails sprockets-es6 is not production ready yet (depends from beta version of…

Read more

Javascript dependency hell

Okey, Scenario is this: There is two competing libraries for ”_” (aka. underscore) global variable. Libraries in question are ”underscore” and ”lodash”. Problem is that due to javascript compatibility dependency hell, it’s quite difficult to have only one of them. For example. in simple test project (either using Jam or Bower) I’m failing to accomplish…

Read more