backbone.validation icon indicating copy to clipboard operation
backbone.validation copied to clipboard

bower support for amd

Open tjaartvdwalt opened this issue 9 years ago • 3 comments

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?

tjaartvdwalt avatar Sep 16 '15 16:09 tjaartvdwalt

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?

chiefGui avatar Sep 17 '15 13:09 chiefGui

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 :)

tjaartvdwalt avatar Sep 17 '15 13:09 tjaartvdwalt

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

IsmaelMartinez avatar Nov 23 '15 13:11 IsmaelMartinez