spec icon indicating copy to clipboard operation
spec copied to clipboard

Add the possibility to host custom fields in the bower.json

Open ivan-saorin opened this issue 10 years ago • 5 comments

I would like to have the possibility to add custom fields in the bower.json. Maybe there could be a 'custom' key within the specification?

ivan-saorin avatar Jul 31 '15 10:07 ivan-saorin

Anyone?

ivan-saorin avatar Aug 12 '15 14:08 ivan-saorin

Do you have a use case for this @ivan-saorin? Otherwise, I mean its JSON—do what you like.

If you're looking to create something as part of the spec, it'd be good to get a few examples of what you're trying to do here.

benschwarz avatar Aug 12 '15 15:08 benschwarz

The idea would be to provide project specific metadata without exit the specification. In my case I would like to add the link to the documentation of a project module: leaving the module author the freedom to point to whatever file she like.

ivan-saorin avatar Aug 12 '15 20:08 ivan-saorin

I'm rather surprised that we don't have a documentationUrl field or something already, but I'm somewhat unconvinced of this proposal.

If we could come up with a few examples then we could make a pitch for its inclusion to the spec, but right now I think there isn't enough here to move forward.

benschwarz avatar Aug 21 '15 08:08 benschwarz

Well, for my scopes a "documentationUrl" field would suffice. How about adding that to the specs?

2015-08-21 10:08 GMT+02:00 Ben Schwarz [email protected]:

I'm rather surprised that we don't have a documentationUrl field or something already, but I'm somewhat unconvinced of this proposal.

If we could come up with a few examples then we could make a pitch for its inclusion to the spec, but right now I think there isn't enough here to move forward.

— Reply to this email directly or view it on GitHub https://github.com/bower/bower.json-spec/issues/51#issuecomment-133324212 .

ivan-saorin avatar Aug 23 '15 21:08 ivan-saorin