1.0.1 • Published 4 years ago

gulp-date-rev v1.0.1

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

Static asset revisioning by datestamp (yyyyMMdd) with version number (xx) to filenames: index_app.js => index_app.20160510-00.js. If there is no difference file to be created with the latest version, the file is not created. Otherwise, it creates a version with a mask. The first day is numbered as version 00.

Install

$ npm install --save-dev gulp-date-rev

Usage

var gulp = require('gulp');
var rev = require('gulp-date-rev');

var DIST_FOLDER = 'dist';

gulp.task('default', function () {
	return gulp.src('src/*.js')
		.pipe(rev(DIST_FOLDER))
		.pipe(gulp.dest(DIST_FOLDER));
});

API

rev(destination)

destination

The directory which stores the old version and the new will be created (if necessary).

1.0.1

4 years ago

1.0.0

4 years ago

0.0.9

4 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago