Any equivalent gulp plugin for doing "grunt bower"?

bower, gruntjs, gulp, javascript, requirejs

Solution

Mind that bowerRequireJS is an asynchronous function. So you would need to use a callback (or synchronously return a Promise) to mark that task as asynchronous like so:

gulp.task('bower', function(callback) {
    var options = {
        baseUrl: 'src',
        config: 'src/app/require.config.js',
        transitive: true
    };

    bowerRequireJS(options, function (rjsConfigFromBower) {
        callback();
    });
});

Problem

With `grunt`, I could use command `grunt bower` (provided by `grunt-bower-requirejs`) to auto-generate `RequireJS` config file for my local `bower` components. Is there any plugin for `gulp` to perform similar task?

Original source