Presented by David DeSandro.
All those dependencies…
- What do you use?
- Where do you put it?
- How do you keep track of it?
We use lots of “stuff” on every project. The problem now is dealing with all of these things. Akin to having a messy desk.
- A solution to the problem of maintaining all of this “stuff” our projects require.
What is Bower?
- Bower is a package manager for the web.
- A command line interface that lets you install various packages from the web (e.g. jQuery).
bower install jquery
- Install a particular version of a package:
bower install jquery#1.xto install the latest version of jQuery 1.x.
bower search normalize
bower initwill help you generate a
bower.jsonmanifest for your project.
bower install boostrapwill install jQuery as Bootstrap has listed jQuery as a dependency.
Why Use Bower?
- Other package managers and techniques exist: Volo, git-submodules, Jam, Component, Browserify, Ender, etc.
- Bower is special in that it is unopinionated: it provides no way to directly consume packages.
bower list --paths
Who is using Bower?
Working with Dependencies
- Duplicated code can easily be broken out into simple, reusable modules.
- Each dependency gets its own repository that can be included into other projects. Each dependency (as a result) has its own issue tracker, its own tests, etc.
Empowering developers to make and distribute their own purpose-built components