Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed May 14, 2019
1 parent 9878aeb commit dee4185
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/cspell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,25 @@ To get color in less, use `--color` and `less -r`
cspell check <filename> --color | less -r
```

## CI/CD Continuous Integration support

### Git commit-hooks

#### pre-commit

**Setup**
```
npm install -SD cspell
```

**`.git/hooks/pre-commit`**
```
#!/bin/sh
files=$(git diff --cached --name-only)
exec npx cspell -- --no-summary $files
```

## Requirements

cspell needs Node 8 and above.
Expand Down

0 comments on commit dee4185

Please sign in to comment.