-
Notifications
You must be signed in to change notification settings - Fork 20
Bower packages #14
Comments
This is something we (all) really want but I think breaking each element up into a repo is unreasonable. IMO, Bower needs get smarter here. One idea I had was to be able to install paths of a repo (e.g @addyosmani is investigating this very thing as we speak! |
@ebidel Yea.. maintainability is a good point. At angular-ui, we also split up ui components into separate repositories. I thought it could also be good thing here. However. I'm totally with you when saying that bower needs to get smarter here. Is there any kind of workaround for this? How do you install specifc polymer-elements? |
You checkout the entire repo. Definitely not ideal, but we don't have anything better today. Like I said, Addy and I are exploring this atm. The current thinking is to create a yeoman/grunt wrapper around WIP tooling: https://github.com/addyosmani/polymer-grunt-example (doesn't include the install part yet) As for adding such filtering to Bower proper, @addyosmani would know more about their plans. |
All right, thanks On Tue, Jul 30, 2013 at 6:47 PM, Eric Bidelman [email protected]:
/pp |
As Eric mentioned, we're currently evaluating the best strategy for how to use Bower with Polymer elements. Today, Bower has a good story for UI library authors that want to be able to host all of their elements in individual repositories under an organization. This may not be the best idea. Think of something like Bootstrap, which wants to easily let developers grab all of the components available at once - we want to support both that - e.g:
but also those that would prefer something more a la carte:
We're going to work with the Bower team to evaluate whether the second of these use-cases is something that might be natively supported by it in the near future. If not, we plan to support this use case using other tooling, for example Yeoman + Grunt. In this scenario you could probably imagine creating your new Polymer component or app using a Polymer generator:
Where cc @sindresorhus who may have more insights on bleeding-edge Bower capabilities. |
Bower has always supported multiple arguments with But you still have to have multiple repos with each of those components. That's not going to change. However, this is the main reason we've decided to support a publishing step ala Though I still think separating it out into multiple repos is a good thing. You could then have a main repo with everything as submodules and a folder with a built version for the lazy crowd. |
What is the team's opposition to supporting paths as well as repos? I The submodule idea would definitely work but it quickly becomes impractical Can you explain the publishing step more?
|
You can install an url directly with
It will be pretty much like |
We recently discussed this topic again. The npm style of publishing model will solve what we're after long-term. It's important to get right as it appears that Mozilla have opted for a multi-repo setup for their components and we ideally want to be able to start using bower for elements eventually. Short-term, if we want - I can implement a solution for installing individual elements/packages from a single repo as part of a grunt task. This would be an extension of https://github.com/stephenplusplus/grunt-bower-install. @sjmiles do we have a feel for whether this is a problem Polymer would like a solution to in the next month or two? |
I don't see why it should be a grunt task. A vanilla node small CLI app or a generator would be a much better fit. |
A new CLI app begs the question: again, why not bake the functionality On Thu, Aug 22, 2013 at 10:43 AM, Sindre Sorhus [email protected]:
|
@ebidel agreed
|
@ebidel because the use case is a bit obscure and it will be solved much more elegantly in the future (with publishing). Another solution would be using |
The use case is far from obscure. The very first time I used Bower, it was I've never used Sounds like publishing is the future and a decent compromise. When will On Thu, Aug 22, 2013 at 2:47 PM, Sindre Sorhus [email protected]:
|
From my experience with |
Of all the packages in the registry it is.
Yup, it's what i wanted from the start.
@danheberden @satazor is there any ETA on the server rewrite?
Again, why a grunt task? |
Good news! Seems like all elements are now hosted on their own repositories. https://github.com/Polymer That's a great step and I'm glad you guys listened to us. One more thing that I think we need to do is: make sure that every |
I'd prefer if we used web-component (singular). |
@zenorocha Package ALL THE THINGS \o/ And yea, I'm with @sindresorhus . Singular is better. |
Hi there, my organisation is looking into splitting its apps into a myriad of small modules managed by Bower. I found this thread and was wondering what was the final solution Polymer came out with to manage a lot of modules easily while still exposing as individual modules. I'm especially concerned by the repo-overhead as many modules will have interdependencies. |
Just use npm. |
Hey @ebidel !
How about putting all these great elements in separate packages so one can install them easy via bower?
I know, this is all in pretty alpha state, but I would also like to build some polymer components and it would be great if I can install dependencies (polymer-ajax/polymehr-xhr e.g.) á la
bower install
.What do you think?
The text was updated successfully, but these errors were encountered: