Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bower support for amd #308

Open
tjaartvdwalt opened this issue Sep 16, 2015 · 3 comments
Open

bower support for amd #308

tjaartvdwalt opened this issue Sep 16, 2015 · 3 comments
Labels

Comments

@tjaartvdwalt
Copy link

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?

@chiefGui
Copy link
Collaborator

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?

@tjaartvdwalt
Copy link
Author

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

@IsmaelMartinez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants