redoc/build/tasks/copy-version.js
2016-04-30 22:55:29 +03:00

11 lines
365 B
JavaScript

var gulp = require('gulp');
var path = require('path');
var paths = require('../paths');
gulp.task('copy-version', function() {
var tag = 'v' + require(path.join(__dirname, '../../package.json')).version;
gulp.src(paths.redocBuilt + '.min.js')
.pipe(gulp.dest(path.join(paths.releases, tag)))
.pipe(gulp.dest(path.join(paths.releases, 'latest')));
});