Canvas/XB started with a single JS package for UI, then CLI was added, and later more packages like @drupal-canvas/create or @drupal-canvas/eslint-config. Additional packages were added incrementally without setting up proper monorepo tooling for JS packages, and now with multiple packages that start to depend on each other, it starts to be more complicated to work with, maintain and publishing new versions (which is currently done manually).
ui and ui/lib/astro-hydration.astro-hydration will be added to the root workspace in https://drupal.org/i/3560419ui/lib/astro-hydration is currently nested in ui/. Maybe we could move astro-hydration to packages/astro-hydration, add it as a dependency of ui and adjust ui build script to copy dist files of astro-hydration to expected location in ui/lib/astro-hydration/dist. Adding ui to the root npm workspace will also require changes to Gitlab CI. Currently ui/node_modules/ is shared between CI jobs as an artifact, with ui in root workspace dependencies will be in the project root node_modules, and when installed for all packages may weight more than the current artifact size limit in GItlab CI.cli into packages/cli, so that the only packages outside the packages/ directory are ui since its path is already used in many places in PHP code, and user docs which are nested in the general docs/ dir.ui/ have different linting configurations than the rest of the repo.(In
β¨
Make bundled packages and utils used in code components available outside Canvas
Active
there are two more packages in the works drupal-canvas and @drupal-canvas/vite-plugin.
Active
1.0
β¦Β to be triaged
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.