初期設定
$ pnpm add -D hygen
$ pnpm hygen init self
コマンドを作る
$ pnpm hygen generator new feature
Loaded templates: _templates
added: _templates/feature/new/hello.ejs.t
new の箇所を with-prompt に置き換えると対話的に生成可能な処理も提供される
テンプレートをもとに新規作成
$ pnpm hygen feature new
Loaded templates: _templates
added: src/hello.js
https://www.hygen.io/docs/templates https://github.com/blakeembrey/change-case/tree/main/packages/change-case にヘルパー関数があるのでローワーキャメルに変換したいなどあれば対応可能
ref: https://qiita.com/ikea_shark_jk/items/7cf561af4a107b079d65 ref(official): https://www.hygen.io/