conversionxl / aybolit

Lightweight web components library built with LitElement.
https://conversionxl.github.io/aybolit/
MIT License
7 stars 8 forks source link

feat: fix style build pipeline #278

Open anoblet opened 1 year ago

anoblet commented 1 year ago

This fixes the style build pipeline while in development mode. In essence, it uses Google Wireit (https://github.com/google/wireit) to run yarn storybook and yarn build in parallel while also adding watch functionality to yarn build. Instead of running separate commands, we would just use yarn dev.

github-actions[bot] commented 1 year ago

size-limit report 📦

Path Size
packages/cxl-ui/pkg/dist-web/cxl-ui.js 33.57 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js 11.87 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js 24.9 KB (0%)
packages/cxl-ui/pkg/dist-web/vendor.js 125.6 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js, packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js, packages/cxl-ui/pkg/dist-web/cxl-ui.js, packages/cxl-ui/pkg/dist-web/manifest.js, packages/cxl-ui/pkg/dist-web/unresolved.js, packages/cxl-ui/pkg/dist-web/vendor.js 197.1 KB (0%)
anoblet commented 1 year ago

@pawelkmpt I moved wireit to devDependencies. I also improved the flow a bit so that first run is sequential and quicker. The dev command isn't really needed as it's just a passthrough to storybook, though if we want to keep it, we can.

anoblet commented 1 year ago

Should be ready for review.