diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/cdn.js | 10 | ||||
-rw-r--r-- | tasks/config.js | 2 | ||||
-rw-r--r-- | tasks/docsite.js | 6 | ||||
-rw-r--r-- | tasks/zip.js | 8 |
4 files changed, 13 insertions, 13 deletions
diff --git a/tasks/cdn.js b/tasks/cdn.js index c1ef345..b290d42 100644 --- a/tasks/cdn.js +++ b/tasks/cdn.js @@ -27,8 +27,8 @@ gulp.task('cdn:stage-bower_components', function() { }); }); -gulp.task('cdn:stage-vaadin-elements', function() { - return gulp.src(['LICENSE.html', 'README.md', 'vaadin-elements.html', 'demo/*', 'apidoc/*'], { +gulp.task('cdn:stage-vaadin-core-elements', function() { + return gulp.src(['LICENSE.html', 'README.md', 'vaadin-core-elements.html', 'demo/*', 'apidoc/*'], { base: "." }) .pipe(modify({ @@ -36,15 +36,15 @@ gulp.task('cdn:stage-vaadin-elements', function() { if (/README.md/.test(file.path)) { contents = contents.replace(/\/latest\//mg, '/' + version + '/'); } else { - contents.replace('https://cdn.vaadin.com/vaadin-elements/latest/', '../../'); + contents.replace('https://cdn.vaadin.com/vaadin-core-elements/latest/', '../../'); } return contents; } })) - .pipe(gulp.dest(stagingPath + "/vaadin-elements")); + .pipe(gulp.dest(stagingPath + "/vaadin-core-elements")); }); -gulp.task('stage:cdn', ['clean:cdn', 'cdn:stage-bower_components', 'cdn:stage-vaadin-elements']); +gulp.task('stage:cdn', ['clean:cdn', 'cdn:stage-bower_components', 'cdn:stage-vaadin-core-elements']); gulp.task('upload:cdn', ['stage:cdn'], function() { common.checkArguments(['cdnUsername', 'cdnDestination']); diff --git a/tasks/config.js b/tasks/config.js index 3b618ea..96ab57f 100644 --- a/tasks/config.js +++ b/tasks/config.js @@ -4,7 +4,7 @@ var fs = require('fs'); var userhome = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE; module.exports = { - elements: ['vaadin-grid'], + coreElements: ['vaadin-grid'], version: args.version || 'master', permalink: args.version ? 'latest' : '', toolsHost: args.toolsHostname || 'tools.vaadin.com', diff --git a/tasks/docsite.js b/tasks/docsite.js index 2526f8d..8428cd4 100644 --- a/tasks/docsite.js +++ b/tasks/docsite.js @@ -41,13 +41,13 @@ gulp.task('cdn:docsite:bower_components', ['cdn:stage-bower_components'], functi .pipe(gulp.dest(docPath + '/bower_components')); }); -gulp.task('cdn:docsite:elements', function() { +gulp.task('cdn:docsite:core-elements', function() { return gulp.src('doc/*') .pipe(gulp.dest(docPath)); }); -var doctasks = ['cdn:docsite:elements']; -config.elements.forEach(function (n) { +var doctasks = ['cdn:docsite:core-elements']; +config.coreElements.forEach(function (n) { var task = 'cdn:docsite:' + n; doctasks.push(task); gulp.task(task, ['cdn:docsite:bower_components'], function(done) { diff --git a/tasks/zip.js b/tasks/zip.js index 43b21f3..5713b7e 100644 --- a/tasks/zip.js +++ b/tasks/zip.js @@ -10,7 +10,7 @@ var stagingPath = config.paths.staging.zip; var version = config.version; var host = config.zipHost; var user = args.zipUsername; -var filename = 'vaadin-elements-' + version + '.zip'; +var filename = 'vaadin-core-elements-' + version + '.zip'; var majorMinorVersion = version.replace(/(\d+\.\d+)(\.|-)(.*)/, '$1'); gulp.task('clean:zip', function() { @@ -46,11 +46,11 @@ gulp.task('zip:upload', ['stage:zip'], function(done) { gulp.task('zip:update-references', ['zip:upload'], function(done) { if (args.release) { - common.ssh(user, host, "sed -i '1i elements/" + majorMinorVersion + '/' + version + "' " + args.zipDestination + 'VERSIONS', done); + 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 elements/" + majorMinorVersion + '/' + version + "' " + args.zipDestination + 'PRERELEASES', done); + common.ssh(user, host, "sed -i '1i core-elements/" + majorMinorVersion + '/' + version + "' " + args.zipDestination + 'PRERELEASES', done); } else { - common.ssh(user, host, 'echo elements/' + majorMinorVersion + '/' + version + ' > ' + args.zipDestination + 'SNAPSHOT', done); + common.ssh(user, host, 'echo core-elements/' + majorMinorVersion + '/' + version + ' > ' + args.zipDestination + 'SNAPSHOT', done); } }); |