node package manager

gulp-tfs-checkout

gulp-tfs-checkout

NPM version build status Coverage Status Downloads

Installation

$ npm install gulp-tfs-checkout

Usage

Based on the node-package tfs-unlock.

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