gulp-git-staged
git-staged plugin for gulp
TODO
WIP: This gulp plugin is a work in progress.
- Add more test for this plugin.
Usage
You can get an object stream of git staged files on git.
First, install gulp-git-staged
as a development dependency:
npm install --save-dev gulp-git-staged
Then, add it to your gulpfile.js
:
var gitStaged = ; gulp ;
API
git-staged(options)
options.status
Type: String
Default: AMRC
What status mode to look for.
A = addedM = modifiedR = renamedC = copied
EXAMPLE
We use this plugin for pre-commit task.
gulp;