jellyfin-web/dashboard-ui/bower_components/fingerprintjs2/gulpfile.js
2016-04-18 14:50:29 -04:00

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() {});