A collection of CLI tools for working with CivicTheme Drupal sub-themes.
Compares SDC component YAML definitions between a sub-theme and CivicTheme, detecting mismatches in prop types, enums, defaults, and missing properties. Can automatically sync the sub-theme to match.
Fetches a list of component pages and checks for HTTP 500+ errors. Useful for catching broken pages after deployments or theme changes.
Requires Node.js 22+.
npm install
npm run configure
The configure script prompts for all settings needed by both tools.
npm run sync-props # sync sub-theme props to match CivicTheme
npm run sync-props:dry-run # preview changes without writing
npm run smoke-test # check component pages for server errors