# gulp-bower

> Install Bower packages.

Latest version **0.0.15** (published 2019-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-bower
pnpm add gulp-bower
yarn add gulp-bower
bun add gulp-bower
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2019-04-17 |
| First published | 2014-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 8 |
| Unpacked size | 26.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 81 |
| Author | Alexander Zonov |
| Maintainers | alexander.zonov |
| Keywords | gulpplugin, bower |

## Links

- npm: https://www.npmjs.com/package/gulp-bower
- Repository: https://github.com/zont/gulp-bower
- Homepage: https://github.com/zont/gulp-bower#readme
- Issues: https://github.com/zont/gulp-bower/issues
- npm.io page: https://npm.io/package/gulp-bower

## Dependencies (8)

- [walk](https://npm.io/package/walk.md) 2.3.3
- [bower](https://npm.io/package/bower.md) ^1.3.12
- [vinyl](https://npm.io/package/vinyl.md) ^2.1.0
- [inquirer](https://npm.io/package/inquirer.md) ^0.11.2
- [through2](https://npm.io/package/through2.md) 0.6.2
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.3.2
- [ansi-colors](https://npm.io/package/ansi-colors.md) ^1.0.1
- [plugin-error](https://npm.io/package/plugin-error.md) ^0.1.2

## Recent versions

- 0.0.15 (latest) — 2019-04-17
- 0.0.14 — 2018-01-09
- 0.0.13 — 2016-01-26
- 0.0.12 — 2016-01-25
- 0.0.11 — 2015-11-13
- 0.0.10 — 2015-01-12
- 0.0.9 — 2015-01-12
- 0.0.8 — 2015-01-12
- 0.0.7 — 2014-10-27
- 0.0.6 — 2014-06-09
- 0.0.5 — 2014-05-19
- 0.0.4 — 2014-04-01
- 0.0.3 — 2014-03-03
- 0.0.2 — 2014-01-22
- 0.0.1 — 2014-01-16

## README

# gulp-bower
> Deprecated. Please use [Browserify](https://www.npmjs.com/package/browserify), [Rollup](https://www.npmjs.com/package/rollup) or [Webpack](https://www.npmjs.com/package/webpack)

[![Build Status](https://travis-ci.org/zont/gulp-bower.svg?branch=master)](https://travis-ci.org/zont/gulp-bower) [![codecov.io](https://codecov.io/github/zont/gulp-bower/coverage.svg?branch=master)](https://codecov.io/github/zont/gulp-bower?branch=master)

This task is designed for gulp 3+.

## Install

```sh
$ npm install --save-dev gulp-bower
```

## Usage

Install packages into the `bower_components` directory from `bower.json` dependencies:

```javascript
var gulp = require('gulp');
var bower = require('gulp-bower');

gulp.task('bower', function() {
  return bower();
});
```

### Examples

* To install packages into a custom directory, pass the `directory` option:

```javascript
var gulp = require('gulp');
var bower = require('gulp-bower');

gulp.task('bower', function() {
  return bower({ directory: './vendor' })
});
```

* To set the current working directory, pass the `cwd` option:

```javascript
var gulp = require('gulp');
var bower = require('gulp-bower');

gulp.task('bower', function() {
  return bower({ directory: './vendor', cwd: './client' })
});
```

* By default gulp-bower runs 'install' command for Bower. Using cmd property, you can specify the custom command (e.g. update):

```javascript
var gulp = require('gulp');
var bower = require('gulp-bower');

gulp.task('bower', function() {
  return bower({ cmd: 'update' });
});
```

## API

### `bower(opts)`
* **opts.directory** - `string` Install directory. Default: taken from `.bowerrc` config or `bower_components`
* **opts.cwd** - `string` Current working directory. Default: `process.cwd()`
* **opts.cmd** - `string` bower command. Default: `install`
* **opts.interactive** - `boolean` Enable prompting on version conflicts. Default: `false`
* **opts.verbosity** - `number` Set verbosity level. Default: `2`
  * **0** - No output
  * **1** - Error output
  * **2** - Info

## Changelog

#####0.0.14
- Drop dependency on deprecated `gulp-util`. (by TheDancingCode)

#####0.0.13
- Added verbosity options, prompting, .bowerrc handling, tests and CI. (by Crevil)

#####0.0.12
- Fixed command passing to also handle nested commands (by mechanoid)

#####0.0.11
- Fixed dependencies (by serbrech)

#####0.0.10
- Fixed #28

#####0.0.9
- Fixed #19
- Fixed undefined cwd bug

#####0.0.8
- Fixed dependencies versions (by Karl-Gustav)
- Fixed cwd bug (by mlegenhausen)

#####0.0.7
- Added commands support (by Keksinautin)

#####0.0.6
- Added ability to pass in an initialization object that allows a cwd to be specified (by cb1kenobi)

#####0.0.5
- Emits "end", so the consumer knows when bower is done installing (by agzam)

#####0.0.4
- fixed custom bower directory bug

#####0.0.3
- add logging (by squarejaw)

#####0.0.2
- parse .bowerrc for the bower install directory or allow the user to specify the directory (by eboskma)

#####0.0.1
- initial release

---
_Source: https://npm.io/package/gulp-bower · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
