Skip to content

Latest commit

 

History

History
 
 

plugin-find-git-staged

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

🔍 plugin-find-git-staged

npm linux windows coverage deps

Find Git staged files and filter them using glob patterns.

Install

$ yarn add --dev @start/plugin-find-git-staged
# or
$ npm install --save-dev @start/plugin-find-git-staged

Usage

Signature

findGitStaged(glob: string | string[])

glob

minimatch patterns

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()
  )