question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gulp TFS Checkout for only modified files in dest folder when src folder files are changed

See original GitHub issue

I am trying to checkout Files from dest folder when I change files in the src folder. currently when i use tfs-gulp-checkout plugin it is checkout all the files, but I am trying to checkout only modified files in src folder to that of dest folder :

const tfs = require('gulp-tfs-checkout');
const gulpWatch = require('gulp-watch');

gulp.task('checkoutcss', function () {
    return gulp.src(['dest/Content/**/*.css'])
         .pipe(tfs())
});

gulp.task('build-less',["checkoutcss"], () => {
   return gulp.src('Content/**/*.less')
         .pipe(less())
         .pipe(gulp.dest('dest/Content'))
});

gulp.task('watch', () => {
    gulpWatch(["Content/**/*.less"], () => {
        runSequence('build-less', 'bs-reload');
    });
});

Can anyone provide solution for checking out only modified files in dest folder, for example only one less file is modified above code is checking out all the css files in the dest folder which I dont want to…

here is another solution I found but couldn’t figure out how to use it with gulp task:

https://gist.github.com/loktar00/345d071d5086fec957ab

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
vijender1256commented, Sep 6, 2016

@heikki Thanks, I did not get any help from stackoverflow, let me know if someone from gulp community can help to figure this out, here is solution i found but couldn’t figure out how to use this with gulp task: https://gist.github.com/loktar00/345d071d5086fec957ab

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gulp TFS checkout for only modified files in dest folder when ...
I am trying to checkout files from dest folder when I change files in the src folder. Currently when I use tfs-gulp-checkout plugin...
Read more >
gulp-tfs-checkout - npm
Checkout and unlock files from TFS, so that gulp can modify the files without the EPERM error.. Latest version: 1.1.2, last published: 2 ......
Read more >
dest() - gulp.js
Whenever a file is created on the file system, the Vinyl object will be modified. The cwd , base , and path properties...
Read more >
Lock command (Team Foundation Version Control)
See how to use the lock command to lock or unlock files or folders in Team Foundation Version Control (TFVC).
Read more >
Build and run your project - Write JavaScript for the Web
This file will contain all of the tasks that we want Gulp to run for our build. Create a new file called gulpfile.js...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found