Kuriを参考に作ったiOS用オレオレVIPERジェネレータ。
Dependencies
- Package Manager
- Swift Package Manager
- packages
- .package(url: "https://github.com/bannzai/XcodeProject.git", from: "0.1.5")
- .package(url: "https://github.com/behrang/YamlSwift.git", from: "3.4.4")
- .package(url: "https://github.com/kareman/SwiftShell", from: "4.1.2")
$ git clone git@github.com:JIBUNSTYLE/koduti.git
$ cd koduti
$ swift build
動作確認
$ .build/debug/koduti
クリーン
$ swift package clean
$ swift build -c release
$ swift package generate-xcodeproj
generated: ./koduti.xcodeproj
$ open koduti.xcodeproj/
$ ./.build/x86_64-apple-macosx/debug/koduti
This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.
Abort trap: 6
iOSプロジェクト(Sampleとする)を作り、プロジェクト配下にkodutiの実行ファイルをコピー。
$ koduti init
これで
- Sample/System/ViperProtocols.swift
- Sample/koduti.yml
- Sample/templates/*
ができる。
$ koduti gen ${prefix}
で、templates以下のテンプレートが prefix
を接頭辞に自動生成される。