Created
February 27, 2014 22:08
-
-
Save prabirshrestha/9260631 to your computer and use it in GitHub Desktop.
get bower main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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