# gulp-tfs-checkout

> Checkout and unlock files from TFS, so that gulp can modify the files without the EPERM error.

Latest version **1.1.2** (published 2020-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-tfs-checkout
pnpm add gulp-tfs-checkout
yarn add gulp-tfs-checkout
bun add gulp-tfs-checkout
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2020-06-24 |
| First published | 2015-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | madsmadsdk |
| Keywords | gulp, gulpplugin, tfs, checkout |

## Links

- npm: https://www.npmjs.com/package/gulp-tfs-checkout
- Repository: https://github.com/madsmadsdk/gulp-tfs-checkout
- Homepage: https://github.com/madsmadsdk/gulp-tfs-checkout#readme
- Issues: https://github.com/madsmadsdk/gulp-tfs-checkout/issues
- npm.io page: https://npm.io/package/gulp-tfs-checkout

## Dependencies (5)

- [through2](https://npm.io/package/through2.md) ^0.6.3
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.3.3
- [tfs-unlock](https://npm.io/package/tfs-unlock.md) ^0.6.1
- [ansi-colors](https://npm.io/package/ansi-colors.md) ^4.1.1
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Recent versions

- 1.1.2 (latest) — 2020-06-24
- 1.1.0 — 2019-03-15
- 1.0.3 — 2017-09-29
- 1.0.2 — 2016-08-23
- 1.0.1 — 2016-01-29
- 1.0.0 — 2015-02-27
- 0.0.5 — 2015-02-27
- 0.0.4 — 2015-02-24
- 0.0.3 — 2015-02-24
- 0.0.2 — 2015-02-24
- 0.0.1 — 2015-02-24

## README

# gulp-tfs-checkout
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][downloads-url]



## Installation
```bash
$ npm install gulp-tfs-checkout
```

## Usage

Based on the node-package [tfs-unlock](https://www.npmjs.com/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', '...', '...', '...']);

```

## Why?
I was tired of having to checkout files that were going to be manipulated manually.
The npm package 'tfs-unlock' can't parse a directory, so I wrote this little plugin that can parse a directory, and performs the tfs-task on each file.

## Roadmap / help wanted
- I'd like to reach a higher coverage score, but I'm really lost when it comes to unit-testing.
If anyone wants to contribute with some unit-testing, I'd be really happy.

## License
[MIT](https://tldrlegal.com/license/mit-license)

[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

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