Giter VIP home page Giter VIP logo

Comments (14)

blai avatar blai commented on June 20, 2024 1

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 assets for packaging purpose. It'd be nice for future version of Bower to spec this up. Glob support might be a nice fit for the list of assets.

from spec.

sheerun avatar sheerun commented on June 20, 2024

@donaldpipowitch Main should only include main css and javascript endpoint.

Please don't include templates there.

from spec.

donaldpipowitch avatar donaldpipowitch commented on June 20, 2024

?

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.

from spec.

sheerun avatar sheerun commented on June 20, 2024

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.

from spec.

donaldpipowitch avatar donaldpipowitch commented on June 20, 2024

So Bootstrap misuses the main property in this case? And every non-ignored file inside a Bower package is declared as a reusable asset by default?

from spec.

sheerun avatar sheerun commented on June 20, 2024

Yes, I think bootstrap misuses main. They use relative paths in css anyway: https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L266

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.

from spec.

desandro avatar desandro commented on June 20, 2024

I don't think globs in main are a good pattern, but I can see its utility. It should work with bower list --path.

This is part of a larger discussion around what main really is.

from spec.

benschwarz avatar benschwarz commented on June 20, 2024

I tend to think that any time a collection of paths is acceptable, that a glob should be able to be used.

from spec.

danielpetisme avatar danielpetisme commented on June 20, 2024

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...

from spec.

donaldpipowitch avatar donaldpipowitch commented on June 20, 2024

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.

from spec.

williamboman avatar williamboman commented on June 20, 2024

@donaldpipowitch +1

from spec.

 avatar commented on June 20, 2024

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.

from spec.

cvrebert avatar cvrebert commented on June 20, 2024

@desandro Could you close this since #43 has been merged?

from spec.

desandro avatar desandro commented on June 20, 2024

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 files that could contain globs.

from spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.