Generamba is a code generator made for working with Xcode. Primarily it is designed to generate VIPER modules but it is quite easy to customize it for generation of any other classes (both in Objective-C and Swift).
We keep evolving Generamba:
Besides, we started working on 2.0 version with powerful DSL and plugins. Check the release roadmap!
generamba gen [MODULE_NAME] [TEMPLATE_NAME]
. You do not need to input a bunch of data each time because each project corresponds to only one configuration file that holds standard file system and Xcode-project pathes, names of targets, information about the author.Ruby 2.2 or later version is required. To check your current Ruby version run this command in terminal:
$ ruby --version
When necessary you can install the required Ruby version with the help of
rvm
orrbenv
.
Run the command gem install generamba
.
generamba setup
in the project root folder. This command helps to create Rambafile that define all configuration needed to generate code. You can modify this file directly in future.{name: 'rviper_controller'}
.generamba template install
. All the templates will be placed in the '/Templates' folder of your current project.generamba gen [MODULE_NAME] [TEMPLATE_NAME]
- It creates module with specific name from specific template.Run generamba help
to learn more about each of the Generamba features.
Wiki:
Other materials:
MIT