index
No repositories found
n> Vaadin web components: https://github.com/vaadin/vaadin-corewww-data
summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
blob: 3d4ab280d7d3516e3aa3a38188248baaa7f3ad01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"use strict";
var gulp = require('gulp');
require('require-dir')('./tasks');
var args = require('yargs').argv;
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');
});

gulp.task('clean', ['clean:cdn', 'clean:zip']);

gulp.task('tag', ['deploy:cdn', 'deploy:zip'], function() {
  if(args.release) {
    version = args.version || version;
    return git.tag(version, 'Release version ' + version, {cwd: '.'}, function (err) {
      if (err) throw err;
      return git.push('origin', version, {cwd: '.', args: '--tags'});
    });
  }
});

gulp.task('deploy', ['tag']);

// can't run all the verification concurrently until sauce-connect-launcher supports
// multiple tunnels
//gulp.task('verify', ['verify:cdn', 'verify:zip]);