skilld-labs / ui-patterns-kaizen

Development for https://www.drupal.org/project/ui_suite
3 stars 0 forks source link

POC: Added extra package.json with dependencies #5

Closed iberdinsky-skilld closed 1 year ago

iberdinsky-skilld commented 1 year ago

In this PR component has own package.json file

  1. with own dependencies
  2. with version
  3. with build script

For building used common vite.components-config.js

All css/js assets now builded with new script yarn bc. They are not gitignored anymore. And keep everything inside.

vite.config.js works as before only for building theme own assets/fonts/images

This PR will allow to share components between projects much easier.

Update

Added separation in dependant library. So now yarn bc command moves imported libraries into component /libraries dir.

Update 2

Added lerna monorepo manager. And extra test PR https://github.com/skilld-labs/ui-patterns-kaizen/pull/7/files removed lerna_

Update 3

Update 3

Added menu component, with preview for both Drupal and Storybook