Suppose I want to create a colletion of packages, say related to cooking. I'll have a core package called cooking and then I want multiple cooking packages:
- cooking-mexican
- cooking-indian
- cooking-tai
Each of those will use cooking. And maybe more common packages will be created in the future. What is the way to set up this structure in github such that you are not forced to create a separate repo for each, but still allow for client projects to pull just the packages they need.
Can a package reference a path within a github package?
From the pub dependencies page they show how you can reference git:
dependencies:
cooking:
git:
url: git://github.com/munificent/cooking.git
ref: some-branch
But ideally I want:
dependencies:
cooking-indian:
git:
url: git://github.com/munificent/cooking.git
ref: some-branch
# path relative to cooking.git that has pubspec.yaml
path: cooking-indian
Is there a way to have one github repo with N packages where only some subset can be selected via pub?