Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Files

Latest commit

f29577b · Apr 26, 2018

History

History
39 lines (27 loc) · 1.38 KB

File metadata and controls

39 lines (27 loc) · 1.38 KB

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