Grunt.js plugin to checkout Windows TFS locked files with Team Foundation Server
npm install grunt-tfs-unlock



> Checkout Windows TFS locked files with Team Foundation Server
``shell`
npm install grunt-tfs-unlock --save-dev
One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-tfs-unlock');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
tfs-unlock: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
})
`$3
#### options.action
Type:
String
Default value: checkoutThe TFS command applied to the target files. Checkout or undo are currently supported
#### options.tfsPath
Type:
String || Array of StringsTodo: Improve enumeration, but for now pass a Windows shell path to parent location of
tf.exe. String path the Visual Studio folder, or use the enumerated array. First index is Visual Studio version number vs2008, vs2010, vs2012, vs2013. Second index is software bit bit32, or bit64.#### options.wait
Type:
Number
Default value: 3Set the sleep duration for the TFS command to finish its work.
$3
#### Visual Studio 2010 64-bit Options
`js
grunt.initConfig({
"tfs-unlock": {
checkout: {
options: {
tfsPath: ["vs2010", "bit64"], // optional
action: 'checkout'
},
files: {
src: []
}
},
undo: {
options: {
tfsPath: ["vs2010", "bit64"],
action: 'undo'
},
files: {
src: []
}
}
}
})
``