Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow comments (as special keys) in bower.json dependencies #1059
Comments
benschwarz
closed this
Jan 22, 2014
This comment has been minimized.
This comment has been minimized.
Not a bug. You can't write comments in JSON. |
This comment has been minimized.
This comment has been minimized.
Perhaps the issue title was misleading. I'm not asking for comments, but special treatment of the key When parsing the dependencies object it would just ignore keys with However, the downsides are that multiple My use case is explaining why there are two versions of Bootstrap. Currently I do this
...which works. But I want to do this:
|
This comment has been minimized.
This comment has been minimized.
frankie-loves-jesus
commented
Jun 1, 2014
|
frankie-loves-jesus
referenced this issue
Jun 1, 2014
Open
The creation of `config/half-pipe.rb` #94
This comment has been minimized.
This comment has been minimized.
Yehonal
commented
Jul 15, 2014
Added this feature in hw2-bower fork: https://github.com/hw2-core/bower |
This comment has been minimized.
This comment has been minimized.
rlidwka
commented
Jul 31, 2014
@Yehonal , if you're doing a fork, it's better to just change config file format to one that has comments (look for json5 or yaml). This feature is pretty useless as is, you won't get syntax highlighting for example, and json has a lot of issues in it besides comments. |
This comment has been minimized.
This comment has been minimized.
Yehonal
commented
Jul 31, 2014
Thank you for your suggestions, i'm not going to change json format and i've included this feature just as experimental ( i'll remove it soon or at least i can create specific "_private" keys for comments ) |
This comment has been minimized.
This comment has been minimized.
We've talked about this many times before — there is no interest in making such a change. |
vjpr commentedJan 22, 2014
E.g.
"//": "a comment"
Currently reports: