Giter VIP home page Giter VIP logo

Comments (7)

sindresorhus avatar sindresorhus commented on July 19, 2024

I would rather see a more generic field for notes of any kind. Could be a suggestion like you request or a note about major changes, or requesting a maintainer.

from spec.

sheerun avatar sheerun commented on July 19, 2024

@sindresorhus gemspec supports "post_install_message" field.

from spec.

sroze avatar sroze commented on July 19, 2024

@sindresorhus I disagree with you: using a suggest, formatted like dependencies, allows to don't show these suggestions if module is already installed for instance.

from spec.

sindresorhus avatar sindresorhus commented on July 19, 2024

@sroze That's too specific to your use-case and is most likely not happening. With something generic we could cover a lot of use-cases with only one property note.

from spec.

sagikazarmark avatar sagikazarmark commented on July 19, 2024

In composer it makes perfect sense to have an attribute like this, since OOP makes it possible to break your code into separate units which can be completely optional. IMO In case of bower projects it is not really the case.

from spec.

mbrodala avatar mbrodala commented on July 19, 2024

@sagikazarmark I'd object here. Let's take the bower.json of alpaca as example:

    "dependencies": {
        "ace-builds": "1.1.7",
        "blueimp-canvas-to-blob": "2.1.1",
        "blueimp-load-image": "1.13.0",
        "blueimp-tmpl": "2.5.4",
        "bootstrap": "3.3.2",
        "bootstrap-multiselect": "0.9.9",
        "ckeditor": "4.4.1",
        "datatables": "1.10.5",
        "datatables-plugins": "https://github.com/DataTables/Plugins.git",
        "eonasdan-bootstrap-datetimepicker": "4.0.0",
        "google-code-prettify": "1.0.3",
        "handlebars": "3.0.3",
        "handsontable": "0.11.4",
        "jquery": "1.11.1",
        "jquery-file-upload": "9.8.0",
        "jquery-hashchange": "https://github.com/gseguin/jquery-hashchange.git",
        "jquery-maskedinput": "1.3.1",
        "jquery-mobile-bower": "1.4.2",
        "jquery-price-format": "2.0.0",
        "jquery-ui": "1.11.2",
        "jqueryui-timepicker-addon": "1.5.0",
        "js-beautify": "1.5.4",
        "json3": "3.3.2",
        "moment": "2.8.3",
        "respond": "1.4.2",
        "tinymce": "4.1.7",
        "typeahead.js": "0.10.5"
    },

Now compare this with the installation instructions from their project page:

<!-- dependencies (jquery, handlebars and bootstrap) -->
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.min.js"></script>
<link type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"/>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

It should be clear by now that from the list above only jquery, handlebars and bootstrap are real dependencies, everything else is a suggestion to get more out of the package but you are perfectly fine without them and a limited functionality. But since bower only supports require, that's the only option they had to let users know about the other packages.

If all remaining dependencies could be specified in a suggest section, the user could decide whether he really wants to download them or not. With bowers excellent CLI this could even be interactive.

from spec.

sagikazarmark avatar sagikazarmark commented on July 19, 2024

First of all: thanks for pointing me to alpaca, it is really interesting.

Secondly: you are right. I think bower allows to manage a more wider set of projects since it is less coupled to any specific language (unlike composer which is somewhat part of the application architecture as well).

However it is also true that while in PHP it is possible to have dependencies in code which can be turned into a package dependency (by suggesting it), in bower related projects it is not that simple. So I see the potential in a suggest keyword in bower, but it is less specific than in composer.

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.