bower-install-lowest

install bower components using the lowest matching versions

Usage no npm install needed!

<script type="module">
  import bowerInstallLowest from 'https://cdn.skypack.dev/bower-install-lowest';
</script>

README

bower-install-lowest

Build Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies semantic-release

install bower components using the lowest matching versions.

Install

npm install -g bower-install-lowest

Usecase

When developing a bower component...

If we use semver versioning correctly, we might not want to fix versions of dependencies to hard. We want to specify the minimal needed version and prevent breaking changes from being installed silently.

Example 2 >= 2.1.7

We want any 2.x version that is greater than, or equal to 2.1.7

So in development when we do a fresh setup, we might end up with version 2.7.50 without notice. In that case, it can happen, that we start to rely on features of that version without explicitly requiring it.

When our component is then installed in another project, this project might have a harder requirement to our dependency, lets say 2.2.6. This version might leak features that we're building upon and then break unexpectedly.

TL;DR

We want to use the lowest matching version of our bower dependencies in development, while allowing higher versions when our package is being used somewhere else.

Usage

bower-install-lowest [<options>]

Options

  • -f, --force
    Ignore version of global bower
  • -h, --help
    Show this help message
  • -p, --production
    Do not install project devDependencies
  • --verbose Display additional output
  • -v, --version
    Output bower-install-lowest version
  • --no-color
    Disable colors

LICENSE

The MIT License

Copyright (c) 2016 Jimdo GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.