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

Make name optional in bower.json #706

Closed
cowboy opened this issue Aug 2, 2013 · 11 comments
Closed

Make name optional in bower.json #706

cowboy opened this issue Aug 2, 2013 · 11 comments

Comments

@cowboy
Copy link

cowboy commented Aug 2, 2013

I'm not sure if any other published-package-centric fields are required in bower.json, but at the very minimum, the name field should be optional. The name field should, however, be required for publishing a package.

There was a (now resolved) issue isaacs/npm#914 to make name and version in package.json optional, because many projects that utilize npm are never published. They use npm modules solely as dev dependencies, and package.json solely as a place to store the list of dev dependencies.

cowboy added a commit to cowboy/wesbos that referenced this issue Aug 2, 2013
@sindresorhus
Copy link
Contributor

👍

2 similar comments
@klzns
Copy link

klzns commented Aug 9, 2013

+1

@franciscolourenco
Copy link

+1

@vladikoff
Copy link
Member

Plus One

@cowboy
Copy link
Author

cowboy commented Jan 26, 2014

Did this ever get fixed? I saw that #1065 (duplicate?) was recently closed.

@benschwarz
Copy link
Member

Ultimately, this should be tracked in the bower.json-spec repo -https://github.com/bower/bower.json-spec/blob/master/README.md as you'll see, name is currently still required.

I tend to think a name should always be used, whether the package is published or not.

@sheerun
Copy link
Contributor

sheerun commented Jun 9, 2014

I think we can use internally directory name if name is not provided.

Scheduling on 1.4.0.

@sheerun sheerun added this to the 1.4.0 milestone Jun 9, 2014
@gerardroche
Copy link

There is an open issue on the spec repository about this bower/spec#22.

Also one about the version being optional bower/spec#4

@jmshal
Copy link

jmshal commented Jun 15, 2014

👍

@vsn4ik
Copy link

vsn4ik commented Sep 6, 2015

👍 for add private option.

@sheerun
Copy link
Contributor

sheerun commented Apr 26, 2020

I think it was implemented at some point

@sheerun sheerun closed this as completed Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

10 participants