bitliner / lerna-subtree

Manage lerna with git subtree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lerna-subtree

Manage lerna with git subtree

Proposal

A list of commands to help manage lerna sub-projects with git subtree.

Commands:

  • lerna-subtree add <GIT_REMOTE_URL>

    1. it runs command git remote add subtree-<REPO_NAME> <GIT_REMOTE_URL> if remote does not exist
    2. it runs git subtree add --prefix=packages/<REPO_NAME> subtree-<REPO_NAME> <branch>
  • lerna-subtree publish

    1. it runs lerna publish
    2. it runs, for each sub-tree, git subtree --prefix=packages/<REPO_NAME> push subtree-<REPO_NAME> --all

About

Manage lerna with git subtree

License:Apache License 2.0