Skip to content

recranet/gulp-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@recranet/gulp-touch

A gulp plugin to update file modification timestamps. Compatible with gulp 4 and 5.

Installation

npm install @recranet/gulp-touch

Usage

const gulp = require('gulp');
const touch = require('@recranet/gulp-touch');

exports.default = function () {
    return gulp.src('src/**/*')
        .pipe(touch())
        .pipe(gulp.dest('dist'));
};

What it does

Updates the mtime (modification time) on each file's stat object to the current time. It does not modify files on disk directly, instead it updates the timestamp on the in-memory file stream so that dest() writes the file with the updated modification time.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors