hyva-register-module-tailwind

Installation
SKILL.md

Register a Module for Tailwind Compilation

Adds a Magento 2 module to app/etc/hyva-themes.json so @hyva-themes/hyva-modules scans it for Tailwind configuration and CSS during compilation. This is done from the module itself, with an observer on hyva_config_generate_before. This is a different task from adding a module to the include/exclude lists in a theme's hyva.config.json.

Follow the official documentation exactly; do not invent APIs, event names or file names:

Command execution: For commands that need to run inside the development environment (e.g., bin/magento), use the hyva-exec-shell-cmd skill to detect the environment and determine the appropriate command wrapper.

Skill deps (read via <skill_path>/../{name}/SKILL.md, where <skill_path> is the directory containing this SKILL.md file): hyva-exec-shell-cmd, hyva-compile-tailwind-css

Non-interactive runs: Where a step says to ask the user and the user cannot be asked (subagent or non-interactive run), stop and report which input or confirmation is missing, unless the step itself says what to do in that case. Do not guess the module, do not write into a package under vendor/ that is not a symlink without confirmation, and do not compile Tailwind CSS; state in the final report that the styles need recompiling.

Parameters

Installs
10
GitHub Stars
86
First Seen
13 days ago