forked from jershell/simple-jsonrpc-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
29 lines (27 loc) · 721 Bytes
/
gulpfile.js
File metadata and controls
29 lines (27 loc) · 721 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
var gulp = require('gulp'),
//local web server
webserver = require('gulp-webserver'),
header = require('gulp-header');
//compress
var uglify = require('gulp-uglify'),
rename = require("gulp-rename");
gulp.task('compress', function () {
gulp.src('simple-jsonrpc-js.js')
.pipe(uglify())
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest('dist'));
});
gulp.task('webserver', function () {
gulp.src('./')
.pipe(webserver({
livereload: false,
port: 8833,
proxies: [{
source: '/rpc',
target: 'http://localhost:8888',
}],
directoryListing: false
}));
});