Skip to content

cli: Input validation and Commander.js scripting with themes#6

Merged
btopro merged 3 commits intohaxtheweb:mainfrom
winstonwumbo:main
Feb 24, 2025
Merged

cli: Input validation and Commander.js scripting with themes#6
btopro merged 3 commits intohaxtheweb:mainfrom
winstonwumbo:main

Conversation

@winstonwumbo
Copy link
Copy Markdown
Contributor

New Features

  • Added CLI options for --custom-theme-name and --custom-theme-template to Commander.js
  • hax-create will throw an error if the options are scripted without --theme custom-theme
  • Clack prompts will validate if the theme name is already part of the HAX core themes, has valid formatting, etc.
  • Refactored the customSiteTheme function in siteProcess to respond to either commandRun or project inputs
  • customSiteTheme uses some regex to apply our naming requirements (custom-${name}-theme) before deploying the webcomponent

Related Issue(s)

@btopro btopro merged commit f6f9f58 into haxtheweb:main Feb 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants