将 YUI 3 合并到 Rails 中
我想知道是否为将 YUI3 与 Rails 资产管道集成做出了任何努力。
通过集成,我不仅仅指几个用于包含库的帮助程序,而是指 YUI 模块加载器的完整集成。
我将详细阐述这个想法:
- 目前,使用 YUI 开发模块的开发人员依赖 Ant 任务来连接模块组件并将它们与一些关联的元数据包装在一起并生成目标文件(以及可选的缩小和运行 jslint)。
- 此外,在获取模块时,YUI 加载器会计算模块依赖项并生成一个包含页面中尚未包含的所有依赖项的单个文件。我想知道整个功能是否可以无缝集成到 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Shifter 是 DIY,但至少你可以停止使用 Ant 进行 concat。
Shifter is DIY, but at least you can stop using Ant for concat.