π plugin-find-git-staged
Find Git staged files and filter them using glob patterns.
Install
$ yarn add --dev @start/plugin-find-git-staged
Usage
Signature
findGitStaged(glob: string | string[])
glob
Example
import sequence from '@start/plugin-sequence'
import findGitStaged from '@start/plugin-find-git-staged'
import eslint from '@start/plugin-lib-eslint'
export const task = () =>
sequence(
findGitStaged('src/**/*.js'),
eslint()
)