pgilad/grunt-dev-update — pull request #2 by morriswchris (2014-01-28 20:10:49+00:00)
Title: added the ability to filter by dependencies object, not just devDependencies:

I found your grunt task useful for checking dependencies, but needed to check past just our devDependencies, so I extended the task to check for both ( and future considerations for more filters based on matchdep ). For now you can run devUpdate as:

```javascript
devUpdate: {
dev: {
options: {
//should task report already updated dependencies
reportUpdated: false,
updateType: "force", // can be 'force'|'report'|'prompt'
packageType: 'dev', // dev|default **default is normal deps
saveType: '--save-dev'
}
},
main: {
options: {
//should task report already updated dependencies
reportUpdated: false,
updateType: "prompt", // can be 'force'|'report'|'prompt'
packageType: 'default', // dev|default **default is normal deps
saveType: '--save'
}
}
}
```
to check either dev or main.

Commit log:
- fixed some formatting
- added defaults to the task runner
- added param for the checking either dev|default filter
- added param for the proper save indexes ( --save-dev|--save ) to package.json
- fixed installing of previous version if package.json is not updated before running 'npm install ...' command