0.1.3 • Published 6 years ago

hooksync v0.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

hooksync

A developer tool to synchronize and install githooks between local and remote repositories. Utilizes promises and async/await patterns to symbolically link files in your projects /hooks directory to a developers local .git/hooks. The sync script will check that the remote hooks are newer than any existing local hooks before linking them.

Getting Started

Prerequisites

Installing

Install the module as a dev dependency of your project.

npm install hooksync -D

Usage

Add hooksync as the "postinstall" script of your package.json. This will trigger the sync script to run whenever a developer runs npm install.

//Inside your package.json
"scripts": {
    "postinstall": "hooksync",
},

Alternatively pass the full PATH of the directory of the folder you want to have parsed and linked to .git/hooks.

"scripts": {
    "postinstall": "hooksync /path/to/my/hooks",
},

hooksync can also be used from the command line, with the same optional PATH argument.

hooksync

# or with arguments
hooksync /path/to/my/hooks

Built With

Contributing

Feel free to contribute on GitHub.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Austin Meyers - Owner - arm22

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago