main-bower-files icon indicating copy to clipboard operation
main-bower-files copied to clipboard

use of main-bower-files after using bower-away

Open tansaku opened this issue 7 years ago • 4 comments

Has anyone tried to continue using main-bower-files after using bower-away to switch to yarn?

tansaku avatar Nov 06 '17 18:11 tansaku

I don't use bower since ages anymore, because of webpack / code splitting / yarn / es6 modules / etc. ;) So personally I wouldn't recommend using it anymore. This is also the reason why I don't really update this project.

ck86 avatar Nov 07 '17 07:11 ck86

@ck86 we're trying to shift away from bower, but bower-away doesn't take into account the way gulp uses main-bower-files. We've rolled our own hard coded solution, but wondered if there was some existing gulp related package that could pick out the set of bower_components that bower_away moves to package.json ...?

tansaku avatar Nov 07 '17 10:11 tansaku

more details in https://github.com/sheerun/bower-away/issues/13

tansaku avatar Nov 07 '17 10:11 tansaku

If I understand you correctly, you could try to override the paths option to tell main-bower-files to search the dependencies in node_modules. Have a look at: https://github.com/ck86/main-bower-files#paths

ck86 avatar Nov 07 '17 10:11 ck86