Checkout and unlock files from TFS, so that gulp can modify the files without the EPERM error.
npm install gulp-tfs-checkoutbash
$ npm install gulp-tfs-checkout
`Usage
Based on the node-package tfs-unlock.
`js
var gulp = require('gulp');
var tfs = require('gulp-tfs-checkout');gulp.task('checkout', function() {
return gulp.src([
'Website/Layout/js/*',
'Website/Layout/css/*'
])
.pipe(tfs());
});
// Add 'checkout' task as dependency to other tasks
gulp.task('sass', ['checkout'], function() {
...
});
// Or run it as a default task
gulp.task('default', ['checkout', '...', '...', '...']);
``[npm-image]: https://img.shields.io/npm/v/gulp-tfs-checkout.svg?style=flat-square
[npm-url]: https://npmjs.org/package/gulp-tfs-checkout
[travis-image]: https://img.shields.io/travis/MadsMadsDk/gulp-tfs-checkout.svg?style=flat-square
[travis-url]: https://travis-ci.org/MadsMadsDk/gulp-tfs-checkout
[coveralls-image]: https://coveralls.io/repos/MadsMadsDk/gulp-tfs-checkout/badge.svg
[coveralls-url]: https://coveralls.io/r/MadsMadsDk/gulp-tfs-checkout
[downloads-image]: http://img.shields.io/npm/dm/gulp-tfs-checkout.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/gulp-tfs-checkout