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.
Issue fork decoupled_lb-3375410
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
Comment #2
griffynh commentedComment #3
griffynh commentedComment #4
griffynh commentedComment #5
griffynh commentedComment #6
larowlanhttps://git.drupalcode.org/project/decoupled_lb/-/tree/1.x/packages/scri... now has the scripts to support: