2016-03-30 03:27:27 +01:00
|
|
|
# bower
|
|
|
|
|
|
|
|
> A package manager optimized for front-end web development.
|
|
|
|
> A package can be a GitHub user/repo shorthand, a Git endpoint, a URL or a registered package.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://bower.io/>.
|
2016-03-30 03:27:27 +01:00
|
|
|
|
|
|
|
- Install a project's dependencies, listed in its bower.json:
|
|
|
|
|
|
|
|
`bower install`
|
|
|
|
|
|
|
|
- Install one or more packages to the bower_components directory:
|
|
|
|
|
|
|
|
`bower install {{package}} {{package}}`
|
|
|
|
|
|
|
|
- Uninstall packages locally from the bower_components directory:
|
|
|
|
|
|
|
|
`bower uninstall {{package}} {{package}}`
|
|
|
|
|
|
|
|
- List local packages and possible updates:
|
|
|
|
|
|
|
|
`bower list`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Create a `bower.json` file for your package:
|
2016-03-30 03:27:27 +01:00
|
|
|
|
|
|
|
`bower init`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Install a specific dependency version, and add it to `bower.json`:
|
2016-03-30 03:27:27 +01:00
|
|
|
|
|
|
|
`bower install {{local_name}}={{package}}#{{version}} --save`
|
2024-01-30 04:55:24 +00:00
|
|
|
|
|
|
|
- Display help for a specific command:
|
|
|
|
|
|
|
|
`bower help {{command}}`
|