forked from cesarZubillaga/angular-confirm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
29 lines (26 loc) · 771 Bytes
/
gulpfile.js
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('./'));
});