blob: cc469eb80a73b9cfbb6f24f9116e3a54cd749185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
var config = require('./config');
var fs = require('fs-extra');
var gulp = require('gulp');
var zip = require('gulp-zip');
var stagingPath = config.paths.staging.zip;
var version = config.version;
var filename = 'vaadin-core-elements-' + version + '.zip';
var majorMinorVersion = version.replace(/(\d+\.\d+)(\.|-)(.*)/, '$1');
gulp.task('clean:zip', function() {
fs.removeSync(stagingPath);
});
gulp.task('zip', ['clean:zip', 'stage:cdn'], function() {
return gulp.src(config.paths.staging.cdn + '/' + version + '/**/*')
.pipe(zip(filename))
.pipe(gulp.dest(stagingPath));
});
|