-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathgulpfile.js
More file actions
31 lines (24 loc) · 796 Bytes
/
gulpfile.js
File metadata and controls
31 lines (24 loc) · 796 Bytes
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
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('build', function() {
});
gulp.task('transmitter', function() {
return gulp.src(['src/remote.js', 'src/transmitter.js'])
.pipe(concat('remote.transmitter.js'))
//.pipe(uglify())
.pipe(gulp.dest('./dist/'))
});
gulp.task('receiver', function() {
return gulp.src(['src/remote.js', 'src/receiver.js'])
.pipe(concat('remote.receiver.js'))
//.pipe(uglify())
.pipe(gulp.dest('./dist/'))
});
gulp.task('watch', function() {
gulp.watch(['src/*.js'], ['transmitter', 'receiver']);
gulp.watch(['dist/*.js'], function() {
return gulp.src(['dist/*.js']).pipe(gulp.dest('examples/'));
});
});
gulp.task('default', ['transmitter', 'receiver', 'watch']);