guacamole-common-js库编译

gulp 编译脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var insert = require('gulp-insert');

gulp.task('default', function() {
return gulp.src('guacamole-common-js/src/main/webapp/modules/*.js')
.pipe(concat('guacamole-common.js'))
.pipe(insert.append('module.exports = Guacamole;'))
.pipe(gulp.dest('dist'))
.pipe(uglify())
.pipe(rename('guacamole-common.min.js'))
.pipe(gulp.dest('dist'));
});
发布于

2023-02-04

更新于

2023-08-18

许可协议

评论