Lerna-based single repo for raincatcher modules.
npm install
npm run bootstrap
npm start
- Add the original remotes to your working copy
node scripts add-remotes
- Pull all newest changes
node scripts pull apps/* packages/*
- Make local changes
git checkout -b my-branch
echo 'hello world' > apps/raincatcher-demo-auth/newFile
git commit -am "Example commit"
- Verify which subrepos have suffered a change
npm run diff
> apps/raincatcher-demo-auth
- [Optional] Add remotes to your own forks
node scripts add-remotes myGithubUsername
The above will add remotes as in myGithubUsername-raincatcher-demo-auth git@github.com:myGithubUsername/raincatcher-demo-auth.git
- Push changes to remotes
node scripts push apps/raincatcher-demo-auth -r my-branch -o 'myGithubUsername'
- Open PRs to multiple single-repos at once
node scripts pr apps/raincatcher-demo
By running node scripts
you'll see a list of available commands, each supports an additional -h
flag to display their individual help and expected arguments.
Additionally most support a -n
flag to run without making any actual changes, and instead outputting the equivalent shell commands that would be executed or debug info.
Available as npm run diff
, this command will list modules that were changed between the current HEAD
and the optional git ref, defaulting to HEAD~1
, i.e. the previous commit:
npm --ref=master run diff
Run node scripts fetch
to pick up any new updates to git remotes containing the individual modules.
node scripts merge-all
will then merge the gitref
reference/branch from the default or prefixed set of remotes.
Examples:
node scripts fetch-and-merge
: merges all changes to default remotes'master
branchesnode scripts fetch-and-merge RAINCATCH-123
: merges all changes to default remotes'RAINCATCH-123
branchesnode scripts fetch-and-merge RAINCATCH-123 'myGhUsername-'
: merges all changes toRAINCATCH-123
branches frommyGhUsername-
-prefixed remotes