https://github.com/elpete/commandbox-githooks
  
  
    Manage your git hooks with CommandBox 
    https://github.com/elpete/commandbox-githooks
  
        Last synced: about 2 months ago 
        JSON representation
    
Manage your git hooks with CommandBox
- Host: GitHub
- URL: https://github.com/elpete/commandbox-githooks
- Owner: elpete
- License: mit
- Created: 2017-09-14T04:35:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T15:23:12.000Z (over 5 years ago)
- Last Synced: 2024-11-14T11:40:07.901Z (12 months ago)
- Language: ColdFusion
- Size: 3.54 MB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
- awesome-git-hooks - commandbox-githooks - Git hooks for CommandBox CFML based projects. (Projects)
README
          # commandbox-githooks
## Manage your git hooks with [CommandBox](https://github.com/Ortus-Solutions/commandbox)
### Installation
Install this package and set up your project to use it:
```bash
box install commandbox-githooks
cd my-git-project
box githooks install
```
Add your scripts to a `githooks` key in the `box.json`:
```json
{
  "githooks": {
    "preCommit": "testbox run",
    "postCheckout": [
      "install",
      "!npm install",
      "!gulp"
    ]
  }
}
```
### Example

Note: In order to work correctly, the path to `box` or `box.exe` must be in your system's PATH variable.