Hi,
Maybe this is already possible and I’m missing it, but it would be nice if there was a CLI command to create a default file structure for modules.
Hi,
Maybe this is already possible and I’m missing it, but it would be nice if there was a CLI command to create a default file structure for modules.
You should be able to use the following to create a new module using CLI:
hs create module <name> [dest]
I KNEW I was missing it. I just re looked at the docs based on your answer I can use that syntax to do alot of other things too! Ha thanks, for replying to my lack of attation to documentation.
One little random thing to note I did have to use the following for it to work in powershell
npx hs create module <name> [dest]
, but switched to regular command prompt and you don’t need to npx.
Thanks!
npx hs create module modulename path
Example: I want to create Two Column Feature Module inside the folder:
npx hs create module Two-Column-Feature test-theme/src/modules