This is based off the rfc proposal, work done by @xshay rspec/rspec-core#2509 and @p8 in https://github.com/rspec/rspec/pull/48
Important This script will execute rm
against rspec sibling repos, e.g. rspec/mono
will delete rspec/rspec-core
ENSURE YOU RUN THIS IN AN OTHERWISE EMPTY PARENT REPO
Also note that this script is history destroying for this repo. PRs containing RSpec commits are not possible as far as I can see.
- Checkout this repo into an empty dir e.g.
mkdir -p ~/code/rspec-prototype/mono
cd ~/code/rspec-prototype/mono
git clone https://github.com/rspec/rspec-monorepo-prototype.git .
-
Ensure you have a base tag with
git tag -f "mono_repo_base"
-
Run
ruby merge.rb