Skip to content
/ Pui Public

A library to generate components from template folders

Notifications You must be signed in to change notification settings

sakiyamaK/Pui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pui

テンプレートフォルダからコンポーネントを生成するライブラリです

(A library to generate components from template folders)

Kuriを参考にしました

(Based on Kuri)

Support Default Architecture

デフォルトで対応しているアーキテクチャです。

(This is the architecture that is supported by default.)

iOS

MVC, MVP, MVVM, VIPER, VIEW

※VIEWはXibとswiftのソースコードが生成されます。

How To Use

Setup Template File

pui template [--ios] --mvc/--mvp/--mvvm/--viper/--view

./templates/PuiTemplate/ios/にテンプレートファイルが生成されます

(. /templates/PuiTemplate/ios/ will generate the template file)

Setup Yaml 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)

Generate Component

Use Default Pui.yml

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. )

Customize

自作のテンプレートファイルを用意してPui.ymlを編集することで自作のテンプレートファイルからコンポーネントを生成できます

(Prepare your own template file and edit Pui.yml to generate components from your own template file.)

Installation

Mint (Recommended)

Mint is a package manager for created by swift package manager executable libraries.

$ mint install sakiyamaK/Pui