テンプレートフォルダからコンポーネントを生成するライブラリです
(A library to generate components from template folders)
Kuriを参考にしました
(Based on Kuri)
デフォルトで対応しているアーキテクチャです。
(This is the architecture that is supported by default.)
MVC, MVP, MVVM, VIPER, VIEW
※VIEWはXibとswiftのソースコードが生成されます。
pui template [--ios] --mvc/--mvp/--mvvm/--viper/--view
./templates/PuiTemplate/ios/
にテンプレートファイルが生成されます
(. /templates/PuiTemplate/ios/
will generate the template file)
pui yaml [--ios] --mvc/--mvp/--mvvm/--viper/--view
pui template [--ios] --mvc/--mvp/--mvvm/--viper/--view
で生成したテンプレートを利用するための設定ファイルである./Pui.yml
が生成されます
(pui template [--ios] --mvc/--mvp/--mvvm/--viper/--view
will generate a configuration file, . /Pui.yml
will be generated)
pui component <TemplateDirName> <ComponentName>
Pui.yml
内の<TemplateDirName>
キーの設定を読み込み<ComponentName>
としてファイルが生成されます
(The file will be generated as <ComponentName>
reading the settings of the <TemplateDirName>
key in Pui.yml
.
)
自作のテンプレートファイルを用意してPui.yml
を編集することで自作のテンプレートファイルからコンポーネントを生成できます
(Prepare your own template file and edit Pui.yml
to generate components from your own template file.)
Mint is a package manager for created by swift package manager executable libraries.
$ mint install sakiyamaK/Pui