Search code examples
javascriptruby-on-railsruby-on-rails-3yuiyui3

Incorporation of YUI 3 in rails


I was wondering if any effort has been made towards integration of YUI3 with rails asset pipeline.

By integration, I don't just mean a couple of helpers for including the library but rather a complete integration of YUI module loader.

I'll elaborate the idea in detail:

  • Currently, developers developing modules using YUI rely on Ant tasks for concatenating the module components and wrapping them up with some associated metadata and generating target files ( and optionally minifying and running jslint).
  • Also, when fetching the modules, the YUI loader calculates the module dependencies and generates a single file comprising of all the dependencies which havent been included already in the page. I was wondering if the whole functionality could be seamlessly integrated into the Asset pipeline of rails.

Solution

  • Shifter is DIY, but at least you can stop using Ant for concat.