Skip to content

Instantly share code, notes, and snippets.

@tarex
Created August 30, 2014 21:22
Show Gist options
  • Save tarex/bfab2e0ea73e6cd42c26 to your computer and use it in GitHub Desktop.
Save tarex/bfab2e0ea73e6cd42c26 to your computer and use it in GitHub Desktop.

Bower-installer was written as a command-line app and doesn't yet expose an API. You could just use exec if you want to:

var exec = require('child_process').exec;

gulp.task('task', function (cb) {
  exec('bower-installer', function (err, stdout, stderr) {
    console.log(stdout);
    console.log(stderr);
    cb(err);
  });
})

Or there is a more fancy gulp-exec plugin available. Ideally though, I wouldn't use bower-installer with gulp, but rather use a separate project like gulp-bower-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment