-
Notifications
You must be signed in to change notification settings - Fork 130
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
Can main
contain globs?
#30
Comments
@donaldpipowitch Main should only include main css and javascript endpoint. Please don't include templates there. |
? No templates? Why that? Any why just CSS and JavaScript? I would like to use Bower for all reusable assets - that shouldn't be to uncommon. Bootstrap includes Fonts as well. |
Main specifies only endpoints, not all files that you want to use with bower. If you want to use those files, just don't ignore them. |
So Bootstrap misuses the |
Yes, I think bootstrap misuses I don't know what you mean by reusable asset, but all assets that are not ignored can be used in build process by grunt, gulp etc. I wonder what other @bower developers think. |
I don't think globs in This is part of a larger discussion around what |
I tend to think that any time a collection of paths is acceptable, that a glob should be able to be used. |
IMO, it's a bad practice https://github.com/webux/ux-angularjs-datagrid use glob in its bower's main. As consequence, the integration with grunt wiredep doesn't work... |
I agree with you that it is a bad practice right now, because it isn't officially specified. However, if it would be part of the bower spec it would be no problem to add this feature to wiredep. I wouldn't say its bad per se. |
I think on one hand we need to point out the main entries for js/css, on the other hand there's definitely a need to have a list of |
I would also be interested in an official line on this in the specification. Globs can be useful for including a bunch of images, although I can also see that not supporting globs might make a developer think a bit more about what is being included. |
Closing as "no." But the general issue is still up for discussion. We'll be evaluating a separate data point to list all files used, like |
I know that
main
shouldn't be a directory, but can it be a glob to files?Say instead of
a shorter
?
The question would be what
$ bower list --path
would return? The glob or the expanded paths? (Maybe it could be configured like$ bower list --path --expand-glob
.)The text was updated successfully, but these errors were encountered: