mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
30 lines
643 B
JavaScript
30 lines
643 B
JavaScript
var gulp = require("gulp"),
|
|
eslint = require("gulp-eslint"),
|
|
rename = require("gulp-rename"),
|
|
uglify = require("gulp-uglify");
|
|
|
|
gulp.task("lint", function() {
|
|
return gulp
|
|
.src("fingerprint2.js")
|
|
.pipe(eslint())
|
|
.pipe(eslint.format())
|
|
.pipe(eslint.failOnError());
|
|
});
|
|
|
|
gulp.task("minify", function() {
|
|
return gulp
|
|
.src("fingerprint2.js")
|
|
.pipe(rename({suffix: ".min"}))
|
|
.pipe(uglify({
|
|
compress: {
|
|
global_defs: {
|
|
NODEBUG: true
|
|
}
|
|
}
|
|
}))
|
|
.pipe(gulp.dest("dist/"));
|
|
});
|
|
|
|
|
|
gulp.task("default", ["lint", "minify"], function() {});
|