Closed ctolkien closed 1 year ago
Yup, it's basically impossible to re-create the same functionality of the "exportsOverride" using gulp-bower together with main-bower-files since there is no way of configuring the desired destination directory directly in your bower.json file. On the other hand, I think that this should probably end up as functionality of main-bower-files instead of including it in gulp-bower.
Bower does support the ignore
property that package authors can use to exclude certain files, but we find that it doesn't really go far enough. jQuery for instance, ignores a bunch of stuff:
https://github.com/jquery/jquery/blob/master/bower.json#L6
But it still includes the entire '/src' folder, when we really only want what's in the '/dist' filter. jQuery itself, the minified version and the source map.
I don't have an answer for any of this, it's just a pain in the butt though :)
It looks like main-bower-files does about 75% of this right now, except that it does not allow you to associate a destination path with each file pattern, like gulp-bower does. https://github.com/ck86/main-bower-files/issues/62 I've opened this issue there, but it's uncertain if there's interest from the developer in having this functionality in main-bower-files.
:+1: can we plz get this in!
I would really l appreciate it if this functionality were available. I prefer Gulp to Grunt but the convenience of grunt-bower-task is hard to give up.
+1
+1
:+1:
+1
+1
Details: https://github.com/yatskevich/grunt-bower-task#advanced-usage