Background

We have some prior art with CKEditor 5 when working with npm packages and Drupal. Our current recommendation is to clone a starter project and use the webpack config and package.json from that. This prevents us from updating the dependencies or configuration quickly, as many versions are propagated through various contrib modules.

Proposed resolution

Drawing inspiration from @wordpress/scripts, develop an npm package with tooling for building and packaging decoupled components.

The MVP of this will include:

  • A script for building JS and CSS

Out of scope but for future consideration:

  • linting
  • a script for checking license compatibility

Release this as a package on npm in the @drupal namespace.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    griffynh created an issue. See original summary.

    griffynh’s picture

    Issue summary: View changes
    griffynh’s picture

    Issue summary: View changes
    griffynh’s picture

    griffynh’s picture

    Issue summary: View changes
    larowlan’s picture

    Status: Active » Fixed

    https://git.drupalcode.org/project/decoupled_lb/-/tree/1.x/packages/scri... now has the scripts to support:

    • project setup
    • project building
    • scaffolding components

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.