Gulp TFS Checkout for only modified files in dest folder when src folder files are changed
See original GitHub issueI 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:
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
http://stackoverflow.com/questions/39274625/gulp-tfs-checkout-for-only-modified-files-in-dest-folder-when-src-folder-files-a
@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