Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forivall/echidna
https://github.com/forivall/echidna
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/forivall/echidna
- Owner: forivall
- Created: 2016-01-16T01:30:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T13:36:19.000Z (11 months ago)
- Last Synced: 2024-10-14T09:57:58.727Z (3 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Echidna
===> A tool for forking packages from and into a mono-repo project.
## About
Automates the process of
git remote add fork-origin [email protected]:octocat/monorepo && git config git fetch --no-tags fork-origin
git subtree split -P packages/spoon-knife -b spoon-knife-master fork-origin/master
git subtree add -P packages/spork spoon-knife-masterand the rest of the workflow, including merging and contributing upstream.
Also stores its git branches in modules in the .git dir, instead of requiring you to
add them directly as remotes. This is what git submodules do. Then the equivalent isgit submodule add --name monorepo [email protected]:octocat/monorepo subtree-workdir/monorepo
git reset .gitmodules subtree-workdir/monorepo && git checkout .gitmodules
(cd subtree-workdir/monorepo; git subtree split -P packages/spoon-knife subtree/spoon-knife/master)
git fetch $(git rev-parse --show-toplevel)/.git/modules/monorepo subtree/spoon-knife/master && git subtree add -P packages/spork FETCH_HEADor, if monorepo is already checked out somewhere
(cd ../monorepo && git subtree split -P packages/spoon-knife subtree/spoon-knife/master)
git fetch ../monorepo subtree/spoon-knife/master && git subtree add -P packages/spork FETCH_HEADAlso updates the package.json with
* sets `version` from the lerna `VERSION` file
* moves the previous author to `contributor`
* adds other contributors from the `git authors` contrib script's output
* sets `name`
* sets `repository`