grunt-bower-concat icon indicating copy to clipboard operation
grunt-bower-concat copied to clipboard

Web Components

Open polarity opened this issue 10 years ago • 3 comments

Umm yea, Web Components are on the horizon. There a basically html files including css and js stored as bower components. I am not happy about storing Web Components on bower but yea, thats how it is actually.

Obviously "grunt-bower-concat" fails at trying to concat these components. Any plans of supporting this in the near future? Im trying to come up with a clean workaround today, basically hiding web components from bower-concat and treat them separately via another task or something.

polarity avatar May 08 '14 04:05 polarity

Do you have any ideas how it could be done in bower-concat? I never use web components.

/cc @artpolikarpov

sapegin avatar May 08 '14 07:05 sapegin

Me neither. But it´s a w3c spec and coming soon to browsers natively. Chrome is supporting it partially already. So, the first step could be to just exclude web-component packages from the process to avoid errors. One rule is that packages have to be a "web-component" keyword in the manifest so that shouldn´t be too hard.

Second step could be a look at vulcanize. It´s the current cli tool for concatenating Web Components and resolve all its dependencies. Maybe we can just implement it into grunt-bower-concat? Sounds like the easiest way to me.

polarity avatar May 08 '14 11:05 polarity

Thanks! The fist step should be simple and we can start with it.

sapegin avatar May 08 '14 13:05 sapegin