generate MVVMC template.
And we can use this template as Xcode template by copying MVVMC.xctemplate into ~/Library/Developer/Xcode/Templates.
- Coordinator
- CoordinatorTests
- Model
- ViewController
- ViewModel
- protocol
- ~ViewModeling
- inputs
- outputs
- CoordinatorOutputs
- protocol
$ git clone git@github.com:ezura/MVVMC-template.git
$ cd MVVMC-template
$ make
$ mint install ezura/MVVMC-template
$ mvvmc-template generate {Name}
$ mvvmc-template sort-impl {File or directory path}
or
$ mvvmc-template sort-implement {File or directory path}
description | Option |
---|---|
Write copyright in header | --copyright or -C |
Write project name in header | --project_name or -P |
Output files as Xcode template | --xcode_template |
If you want to set copyright:
$ mvvmc-template generate --copyright "{copyright}" {Name}
or
$ mvvmc-template generate -C "{copyright}" {Name}
- ViewModel
- protocol
- ~ViewModeling
- inputs
- outputs
- CoordinatorOutputs
- protocol
- Coordinator
- CoordinatorTests
- Model
- ViewController
- sort implement
- header template
- customize template
- sync protocol and implement
- improve error message