backbone.validation
backbone.validation copied to clipboard
bower support for amd
Hi,
I would like to pull in the backbone-validation
using Bower.
I am also using require.js
so ideally I would like to pull in the AMD version, but the current bower config uses the non-AMD version.
I am not a Bower expert, but is it possible to add a second package, (maybe called backbone-validation-amd
) for a single repo?
Hey @tjaartvdwalt.
Actually, there is no need to create a second package—all is needed is compile backbone.validation to output in the AMD-way and serve either AMD and CommonJS through the same package via Bower or npm.
By the way, did you see that we already have an AMD file?
Hi @chiefGui, Thanks for the reply.
Yes I saw the AMD file. For now I manually include it in my project, so I have no blocking issue. In a perfect world I would want to manage all dependencies with Bower though :)
Hi @chiefGui and @tjaartvdwalt ,
Is there any plan on adding this to the bower.json file? (meaning the possibility of getting either amd or non amd)
Ta