0.3.1 • Published 7 months ago

repo-tools v0.3.1

Weekly downloads
72
License
MIT
Repository
github
Last release
7 months ago

repo-tools

npm version Build Status Quality Gate Status Coverage

Useful CLI commands for working with remote repositories.

Setup

$ npm install --save-dev repo-tools

Usage

# with an up-to-date repo
$ ./node_modules/.bin/repo-tools check-remote	
✔ Repo is up-to-date! # exit code 0

# with an outdated repo
$ ./node_modules/.bin/repo-tools check-remote	
⊘ You need to pull, there are new commits. #exit code 1

Commands

check-remote
Compare the local tree with the remote and determine if it needs update.

install-packages
Check if the most recent commit have a modified package.json and run npm/yarn/pnpm/bun install

Integration

These commands work perfectly with husky hooks (git hooks)

pre-commit

./node_modules/.bin/repo-tools check-remote

post-merge

./node_modules/.bin/repo-tools install-packages

License

MIT

0.3.0

7 months ago

0.3.1

7 months ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago

0.0.0

8 years ago