summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/assets/lib/angular-confirm-modal/gulpfile.js
blob: 456712d4c391c1fddc3b73cf8310e9c7ad16f3a6 (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
var gulp = require('gulp'),
	header = require('gulp-header'),
	bump = require('gulp-bump'),
	git = require('gulp-git'),
	uglify = require('gulp-uglify'),
	ngAnnotate = require('gulp-ng-annotate'),
	rename = require("gulp-rename"),
    karma = require('karma').server;

gulp.task('test-unit', function(done) {
    karma.start({
        configFile: __dirname + '/test/karma.conf.js',
        singleRun: true
    }, done);
});

gulp.task('dest', function() {
	gulp.src('./angular-confirm.js')
		.pipe(ngAnnotate())
		.pipe(uglify({preserveComments: 'all'}))
		.pipe(rename("angular-confirm.min.js"))
		.pipe(gulp.dest('./'))
});

gulp.task('bump-json', function (done) {
  return gulp.src(['./package.json', './bower.json'])
    .pipe(bump())
    .pipe(gulp.dest('./'));
});