# grunt-staged

> Run grunt tasks with only those source files staged for code commit.

Latest version **0.1.0** (published 2015-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-staged
pnpm add grunt-staged
yarn add grunt-staged
bun add grunt-staged
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-06-06 |
| First published | 2015-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Adam "Grayside" Ross |
| Maintainers | grayside |
| Keywords | gruntplugin, git, staged, files |

## Links

- npm: https://www.npmjs.com/package/grunt-staged
- Repository: https://github.com/grayside/grunt-staged
- Issues: https://github.com/grayside/grunt-staged/issues
- npm.io page: https://npm.io/package/grunt-staged

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^1.2.0
- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [staged-git-files](https://npm.io/package/staged-git-files.md) 0.0.4

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-06-06

## README

# grunt-staged

> Run grunt tasks with only those source files staged for code commit.

## Getting Started
This plugin requires Grunt.

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-staged --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-staged');
```

## The "staged" task

The staged task doesn't require any special configuration. To use it, just add `staged` as the first argument when running other tasks.

This command is heavily based on [grunt-newer](https://github.com/tschaub/grunt-newer), except it determines
which files should be handled based on git staging.

## Use Case

This task is best used when you want to make sure a set of discrete changes is
processed, but do not want to include other changes in your operations.

## VCS Support

* git

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## License
Copyright (c) 2015 Adam "Grayside" Ross. Licensed under the MIT license.

---
_Source: https://npm.io/package/grunt-staged · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
