Skip to content

civictheme/component-validation

Repository files navigation

CivicTheme Tools

A collection of CLI tools for working with CivicTheme Drupal sub-themes.

Tools

Component Prop Validation

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.

Component Smoke Test

Fetches a list of component pages and checks for HTTP 500+ errors. Useful for catching broken pages after deployments or theme changes.

Setup

Requires Node.js 22+.

npm install
npm run configure

The configure script prompts for all settings needed by both tools.

Usage

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors