forked from betsol/angular-input-modified
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
40 lines (35 loc) · 1007 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
30
31
32
33
34
35
36
37
38
39
40
var del = require('del');
var gulp = require('gulp');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var gutil = require('gulp-util');
var deploy = require('gulp-gh-pages');
var debug = require('gulp-debug');
var connect = require('gulp-connect');
gulp.task('clean', function (callback) {
del(['dist'], callback);
});
gulp.task('build', ['clean'], function () {
gulp.src('src/angular-input-modified.js')
.pipe(rename('angular-input-modified.js'))
.pipe(gulp.dest('dist'))
.pipe(uglify())
.pipe(rename('angular-input-modified.min.js'))
.pipe(gulp.dest('dist'))
.on('error', gutil.log)
;
});
gulp.task('deploy', function () {
return gulp.src('./demos/**/*.*')
.pipe(debug({
title: 'Deploy'
}))
.pipe(deploy({}));
});
gulp.task('webserver', function() {
connect.server({
root: './demos',
port: 8888
});
});
gulp.task('default', ['build']);