gulp-bower

Install Bower packages.

npm install gulp-bower
25 downloads in the last day
306 downloads in the last week
1 573 downloads in the last month

gulp-bower

Install Bower packages.

This task is designed for gulp 3.

Usage

First, install gulp-bower as a development dependency:

npm install --save-dev gulp-bower

Then, add it to your gulpfile.js:

var bower = require('gulp-bower');

gulp.task('bower', function() {
  bower()
    .pipe(gulp.dest('lib/'))
});

This defaults to the directory configured in ./.bowerrc or to ./bower_components when no .bowerrc could be found.

You can also specify a custom Bower directory:

var bower = require('gulp-bower');

gulp.task('bower', function() {
  bower('./my_bower_components')
    .pipe(gulp.dest('lib/'))
});

Changelog

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
npm loves you