Comments (7)
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.
@sindresorhus gemspec supports "post_install_message" field.
from spec.
@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.
@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.
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.
@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.
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)
- bower validate? HOT 1
- Should `main` contain individual JS files or one concatenated JS file? HOT 4
- "overrides" property proposal HOT 3
- Proposal for an optional "supportedVersions" property HOT 2
- main and ignore are optional, but bower complains if missing HOT 1
- How should local components be specified and consumed to avoid duplication? HOT 1
- files: list all required files for build tools HOT 71
- Version the spec itself HOT 5
- Add the possibility to host custom fields in the bower.json HOT 5
- Rename repository to bower-spec and add .bowerrc specificaton HOT 5
- dependencies and devDependencies automatically pull the latest commit when url has #latest suffix ? HOT 1
- Inconsistencies for version, main, ignore attributes HOT 1
- Formatting of Deprecated is Confusing HOT 1
- example of environment variables seems incorrect HOT 2
- config spec does not document hooks HOT 1
- main property for es6 module version HOT 1
- Author clarification
- save and save-exact aren't listed in the spec
- Concurrent bower install error.
- Default value of `private` field is not specified. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spec.