repo-steward

1.2.1 • Public • Published

NOTICE: This Project is under development, and functionalities have been tested on MacOS only.

Table of Content

Overview

This project ships 2 things

  • a script used in post-commit hook
  • a CLI command used to control script behavior

By using this script, you can

  • commit and push in super-project automatically after running git commit -m msg in it's submodule
  • stop auto commit in super-project when the path matches $ROOT_SUPER_PROJECT

If you want to use the script without CLI, you can follow the setup-script-only guide.

Installation

npm install -g repo-steward
rp init

This step installs the rp command, and sets up script in post-commit hook.

Usage

rp --help
rp help <command>

Uninstall

rp auto-update --disable
npm uninstall -g repo-steward

Setup Script Only

  1. Download auto-update script

  2. Run chmod +x for this script

  3. Add the path to the script in your global post-commit file. For how to setup git hooks globally, checkout this answer.

    #!/bin/sh
    
    path-to-the-downloaded-script/auto-update-script

Now, try to commit in a submodule and see what's happened in it's super-project!

Development

This is my very first CLI application, any advices and PRs are welcome!

pnpm i
npm run watch

Package Sidebar

Install

npm i repo-steward

Weekly Downloads

2

Version

1.2.1

License

MIT

Unpacked Size

33 kB

Total Files

22

Last publish

Collaborators

  • harryhe774