bowerstatic icon indicating copy to clipboard operation
bowerstatic copied to clipboard

override main of a component

Open faassen opened this issue 11 years ago • 4 comments
trafficstars

Sometimes the main of a bower component does something we really don't want. We should have the possibility to override it entirely.

faassen avatar Aug 28 '14 13:08 faassen

Is there any progress on this? Bower seems to support a an overrides concept, see https://github.com/bower/bower.json-spec/issues/38

icemac avatar Jun 17 '15 07:06 icemac

No progress on this. Happy to see contributions.

From what I can find in that issue (and related https://github.com/bower/bower.json-spec/pull/27 ) , Bower does not yet support such an overrides system, right? But we can take it as inspiration, I guess!

faassen avatar Jun 23 '15 09:06 faassen

I'm not sure about the implementation status of this feature in bower. (Some pages refer to it as undocumented some other – like the spec – let me think that it is not jet implemented.) But I think it could be a good source of inspiration.

I my current problem was that I wanted to exclude a file mentioned in main. I solved it for now by manipulating the resource dependencies after include.

icemac avatar Jun 23 '15 10:06 icemac

I ran into an issue where I wanted to completely change a main to include a different file (which can happen if a bower package offers multiple bundles with more or less features).

faassen avatar Jun 23 '15 11:06 faassen