Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakemmarsh/gulp-git-status
A Gulp plugin for selectively including source files based on their Git status.
https://github.com/jakemmarsh/gulp-git-status
Last synced: 20 days ago
JSON representation
A Gulp plugin for selectively including source files based on their Git status.
- Host: GitHub
- URL: https://github.com/jakemmarsh/gulp-git-status
- Owner: jakemmarsh
- License: mit
- Created: 2015-09-27T22:10:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T18:51:57.000Z (over 9 years ago)
- Last Synced: 2024-12-09T02:12:34.826Z (about 1 month ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gulp-git-status [![npm version](https://badge.fury.io/js/gulp-git-status.svg)](http://badge.fury.io/js/gulp-git-status)
===============A Gulp plugin for selectively including source files based on their Git status.
## Usage
First, install `gulp-git-status` as a development dependency:
```
npm install --save-dev gulp-git-status
```Then, add it to your Gulp task:
```javascript
import gulp from 'gulp';
import gulpGitStatus from 'gulp-git-status';gulp.task('moveFiles', () => {
gulp.src('lib/*')
.pipe(gulpGitStatus({
excludeStatus: 'modified'
}))
.pipe(gulp.dest('./'));
});
```## API
### gulpGitStatus(options)
#### options.excludeStatus
**Type:** `String`
**Default:** "modified"
**Possible values:** `["modified", "unchanged", "untracked"]`
The Git file status to exclude from your piped files.
## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)