feat: #3614678 Add Varbase Patches to the composer requirements and a Drupal CMS wiring script
Issue: https://www.drupal.org/project/varbase_starter/issues/3614678
Adds vardot/varbase-patches to this recipe's own requirements, and a scripts/drupal-cms-wiring.js that prepares a plain drupal/cms codebase for it: dev stability, the allow-plugins and patches allowlist varbase-patches needs to run, the drupal-libraries sync into web/libraries/, and nodeLinker: node-modules for Yarn 4.
The values live in scripts/assets/drupal-cms.composer.json and scripts/assets/drupal-libraries.package.json, so the wiring can change without editing the script. Idempotent, --dry-run supported.
node drupal-cms-wiring.js
composer require drupal/varbase_starter:1.0.x-dev -W
corepack enable && corepack yarn install-W is needed because a partial update keeps the locked symfony/css-selector, which drupal/storybook conflicts with.
Verified on a stock Drupal CMS build: drupal/canvas 1.9.0 with its patches, all six libraries synced, recipe in place. Nothing changes on a Varbase base.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release