mirror of https://github.com/akveo/blur-admin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
848 B
26 lines
848 B
'use strict';
|
|
|
|
var path = require('path');
|
|
var gulp = require('gulp');
|
|
var zip = require('gulp-zip');
|
|
var prompt = require('gulp-prompt');
|
|
var rename = require('gulp-rename');
|
|
|
|
gulp.task('marketplace-release', ['build', 'dev-release'], function () {
|
|
return gulp.src('')
|
|
.pipe(prompt.prompt({
|
|
type: 'input',
|
|
name: 'version',
|
|
message: 'Please enter release version (x.x.x)'
|
|
}, function (res) {
|
|
var nameAndVersion = 'blur-admin-' + res.version;
|
|
return gulp
|
|
.src(['src/**', 'release/**', 'dev-release/**', 'gulp/**', 'bower.json', 'gulpfile.js', 'package.json', 'README.md', '.gitignore'], {base: "."})
|
|
.pipe(rename(function (path) {
|
|
path.dirname = nameAndVersion + '/' + path.dirname;
|
|
}))
|
|
.pipe(zip(nameAndVersion + '.zip'))
|
|
.pipe(gulp.dest('.'));
|
|
}));
|
|
|
|
}); |