summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSauli Tähkäpää <sauli@vaadin.com>2016-05-17 14:32:36 +0300
committerSauli Tähkäpää <sauli@vaadin.com>2016-05-17 14:32:36 +0300
commit4c5c3b4e4f08d852fb361dffc3739e93f202ef17 (patch)
treebcfb0d6904b4b54a9afe21e7c79c430a7857edf1
parent0bcaafd4dbee75b567452a0bab8a1c21f74b0623 (diff)
downloadvaadin-core-4c5c3b4e4f08d852fb361dffc3739e93f202ef17.tar.gz
vaadin-core-4c5c3b4e4f08d852fb361dffc3739e93f202ef17.zip
Removed ZIP related steps
-rw-r--r--gulpfile.js6
-rw-r--r--tasks/config.js2
-rw-r--r--tasks/zip.js57
3 files changed, 3 insertions, 62 deletions
diff --git a/gulpfile.js b/gulpfile.js
index e9485b2..eb04af8 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -7,9 +7,9 @@ var git = require('gulp-git');
var version = '0.3.0';
gulp.task('default', function() {
- console.log('\n Use:\n gulp <stage|deploy[:cdn:zip]>\n');
+ console.log('\n Use:\n gulp <stage|deploy[:cdn]>\n');
});
-gulp.task('clean', ['clean:cdn', 'clean:zip']);
+gulp.task('clean', ['clean:cdn']);
-gulp.task('deploy', ['deploy:cdn', 'deploy:zip']);
+gulp.task('deploy', ['deploy:cdn']);
diff --git a/tasks/config.js b/tasks/config.js
index d87ce0d..3034ab8 100644
--- a/tasks/config.js
+++ b/tasks/config.js
@@ -8,12 +8,10 @@ module.exports = {
version: args.version || 'master',
permalink: args.version ? 'latest' : '',
toolsHost: args.toolsHostname || 'tools.vaadin.com',
- zipHost: args.zipHostname || 'vaadin.com',
paths: {
staging: {
bower: 'target/bower',
cdn: 'target/cdn',
- zip: 'target/zip',
doc: 'target/docsite'
},
userhome: userhome,
diff --git a/tasks/zip.js b/tasks/zip.js
deleted file mode 100644
index f80d0aa..0000000
--- a/tasks/zip.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var args = require('yargs').argv;
-var common = require('./common');
-var config = require('./config');
-var fs = require('fs-extra');
-var gulp = require('gulp');
-var gutil = require('gulp-util');
-var zip = require('gulp-zip');
-
-var stagingPath = config.paths.staging.zip;
-var version = config.version;
-var host = config.zipHost;
-var user = args.zipUsername;
-var filename = 'vaadin-core-elements-' + version + '.zip';
-var majorMinorVersion = version.replace(/(\d+\.\d+)(\.|-)(.*)/, '$1');
-
-gulp.task('clean:zip', function() {
- fs.removeSync(stagingPath);
-});
-
-gulp.task('stage:zip', ['clean:zip', 'stage:cdn'], function() {
- return gulp.src(config.paths.staging.cdn + '/' + version + '/**/*')
- .pipe(zip(filename))
- .pipe(gulp.dest(stagingPath));
-});
-
-function computeDestination() {
- common.checkArguments(['zipUsername', 'zipDestination']);
- var path = majorMinorVersion != version ? majorMinorVersion + '/' + version : version;
- path = args.zipDestination + path + '/' + filename;
- return path;
-}
-
-gulp.task('zip:upload', ['stage:zip'], function(done) {
- var src = stagingPath + '/' + filename;
- var dst = computeDestination();
- gutil.log('Uploading zip package (scp): ' + src + ' -> ' + user + '@' + host + ':' + dst);
- require('scp2').scp(src, {
- host: host,
- username: user,
- privateKey: config.paths.privateKey(),
- path: dst
- }, function(err) {
- done(err);
- });
-});
-
-gulp.task('zip:update-references', ['zip:upload'], function(done) {
- if (args.release) {
- common.ssh(user, host, "sed -i '1i core-elements/" + majorMinorVersion + '/' + version + "' " + args.zipDestination + 'VERSIONS', done);
- } else if (args.preRelease) {
- common.ssh(user, host, "sed -i '1i core-elements/" + majorMinorVersion + '/' + version + "' " + args.zipDestination + 'PRERELEASES', done);
- } else {
- common.ssh(user, host, 'echo core-elements/' + majorMinorVersion + '/' + version + ' > ' + args.zipDestination + 'SNAPSHOT', done);
- }
-});
-
-gulp.task('deploy:zip', ['zip:upload', 'zip:update-references']);