Skip to content

Commit

Permalink
[skip travis] add parallel option
Browse files Browse the repository at this point in the history
  • Loading branch information
A.A.Abroskin committed Feb 21, 2019
1 parent 8e9a997 commit 15ab894
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 77 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,22 @@ source_dir_local: ".hookah-local"

pre-commit:
# Specify additional parameters for script files
# If your scripts have shebang notation you can skip
# this section
scripts:
"hello.js":
runner: node
"any.go":
runner: go run

# Not enough speed? Run all of them in parallel!
# Default: false
parallel: true

commands:
eslint:
glob: "*.{js,ts}"
runner: yarn eslint {staged_files} # {files} will be replaced by matched files as arguments
runner: yarn eslint {staged_files}
rubocop:
tags: backend style
glob: "*.{rb}"
Expand All @@ -118,7 +124,7 @@ pre-commit:
tags: backend style
files: git ls-files -m # we can explicity define scope of files
glob: "*.{go}"
runner: go vet {files}
runner: go vet {files} # {files} will be replaced by matched files as arguments
```
If your team have backend and frontend developers, you can skip unnsecesary hooks this way:
`hookah-local.yml`
Expand Down
Loading

0 comments on commit 15ab894

Please sign in to comment.