Gem to generate VIPER modules to use them in your Objective-C/Swift projects.
Gem to generate VIPER modules to use them in your Objective-C/Swift projects.
Gem to generate VIPER modules to use them in your Objective-C/Swift projects The implementation scheme returned by this generator is hardly inspired in the example and post of Objc.io, http://www.objc.io/issue-13/viper.html .
templates command to know which templates are available…You can install it easily as using the gem. With ruby installed in your OSX execute:
sudo gem install vipergenIf everything were right, you should have now the vipergem command available in your system console
You have just to execute the following command
vipergen generate MyFirstViperModule --path=~/myproject/sharedAnd then the files structure will be automatically created. Don't forget to add this folder to your project dragging it into the XCode/Appcode inspector
When the gem is updated it has to be reported to the gem repository. I followed this tutorial http://amaras-tech.co.uk/article/43/Creating_executable_gems that basically says that once you have your gem ready execute:
gem build vipergen.gemspec
gem install vipergen-0.1.gem
gem push vipergen-0.1.gemThen you'll be asked for your credentials in order to make the update in the repo (http://guides.rubygems.org/publishing/)
Are you interested in VIPER and you would like to contribute with this gem adding new templates? Feel free to do it. It's pretty easy. You've just to:
templates with the name of your templateauthor: pepi
author_email: [email protected]
template_description: Default template with the simplest structure using VIPER
updated_at: 2014-08-24No open issues yet, or sync has not completed.