Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

myposter-de/monorepo-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository splitting

Download

You can download binary build for MacOS: https://github.com/myposter-de/monorepo-splitter/releases

Installation (this requires golang)

  1. run brew install pkg-config
  2. run make install-libgit2
  3. run make install and open a new shell
  4. create config file <some name>.yaml
  5. run splitter -c <path to your config>.yaml
  6. provide your github credentials when prompted

Config file syntax

version: 0.0.3
root:
  branch: feature/canvas-renderer/split
  path: ~/mp/myposter
  remote: origin
packages:
  prefix: packages
  branch: master
  items:
    - remote: foo
      url: https://github.com/foo-de/canvas.git
      path: some/path/relative/to/root/path/and/prefix
    - remote: bar # if no path is provided, remote prefix with remote name will be used
      url: https://github.com/bar-de/enum.git
actions:
  - validate
  - set-packages-dependencies
  - update-configs
  - write-changes
  - push-changes
  - split-packages
  - reset