grunt-update-submodules
Version:
Updates git submodules
52 lines (42 loc) • 1.78 kB
Markdown
[](https://travis-ci.org/jaubourg/grunt-update-submodules)
[](https://coveralls.io/r/jaubourg/grunt-update-submodules)
[](https://david-dm.org/jaubourg/grunt-update-submodules)
[](https://david-dm.org/jaubourg/grunt-update-submodules#info=devDependencies)
[](https://www.gittip.com/jaubourg/)
[](https://www.npmjs.org/package/grunt-update-submodules)
# grunt-update-submodules
[Grunt](http://gruntjs.com/) task to update git submodules.
## Installing
Install and add to dependencies.
```sh
npm install grunt-update-submodules --save-dev
```
Load the task in `Gruntfile.js`.
```javascript
task.loadNpmTasks( "grunt-update-submodules" );
```
## Usage
```javascript
grunt.initConfig({
"update_submodules": {
default: {
options: {
// default command line parameters will be used: --init --recursive
}
},
withCustomParameters: {
options: {
params: "--force" // specifies your own command-line parameters
}
},
withNoParameter: {
options: {
params: false // blanks command-line parameters
}
}
}
});
```
## License
Copyright (c) 2012 - 2014 [Julian Aubourg](mailto:j@ubourg.net)
Licensed under the [MIT license](https://raw.githubusercontent.com/jaubourg/grunt-update-submodules/master/LICENSE-MIT).