ck86 / main-bower-files

Getting all main bower files
583 stars 56 forks source link

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

Open tansaku opened 7 years ago

tansaku commented 7 years ago

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

ck86 commented 7 years ago

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.

tansaku commented 7 years ago

@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 commented 7 years ago

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

ck86 commented 7 years ago

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