Skip to content

gaoding-inc/cocoapods-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cocoapods-monorepo

Gem Version

A tool for organizing code in monorepo way.

cocoapods-monorepo allowed you to specify a directory, so we can extend CocoaPods to support monorepo feature. Thanks to this plugin we can turn all the pods that under a specified directory into Development Pods. You will no longer need to specify all local paths in the Podfile, eg:

pod 'ModuleA', :path => 'path/to/ModuleA'
pod 'ModuleB', :path => 'path/to/ModuleB'
pod 'ModuleC', :path => 'path/to/ModuleC'

Besides, you can also specify a local dependency in podsepc, that's say you need to declare a dependency of ModuleB in ModuleA.podspec:

s.dependency 'ModuleB' # inside ModuleA.podspec

Installation

$ gem install cocoapods-monorepo

Usage

Add a reference to it in your Podfile, and specified the necessary option :path :

plugin 'cocoapods-monorepo', :path => 'path/to/repos-directory'

Requirements

You should orgnize all these local modules under the same directory with :path option.

.
├── ModuleA
│   ├── ModuleA.podspec
│   └── README.md
├── ModuleB
│   ├── ModuleB.podspec
│   ├── README.md
├── ModuleC
│   ├── ModuleC.podspec
│   ├── README.md

Enjoy it!

About

A tool for organizing your code as monorepo architecture

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages