Skip to content

Instantly share code, notes, and snippets.

@prabirshrestha
Created February 27, 2014 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabirshrestha/9260631 to your computer and use it in GitHub Desktop.
Save prabirshrestha/9260631 to your computer and use it in GitHub Desktop.
get bower main
var gulp = require('gulp'),
tap = require('gulp-tap');
gulp.src('bower_components/*')
.pipe(tap(function (file, t) {
var main = require(file.path + '/' + 'bower.json').main
console.log(file.path + '/' + main);
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment