forked from Nestor/discord-translator
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathgulpfile.js
More file actions
27 lines (22 loc) · 698 Bytes
/
gulpfile.js
File metadata and controls
27 lines (22 loc) · 698 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
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const watch = require('gulp-watch');
const lec = require('gulp-line-ending-corrector');
//const uglify = require('gulp-uglify-es').default;
gulp.task('lint', () => {
return gulp.src(['src/**/*.js'])
.pipe(lec())
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
gulp.task("compress", function () {
return gulp.src("src/**/*.js")
//.pipe(uglify())
.pipe(gulp.dest("build/"));
});
gulp.task('default', ['lint', 'compress']);
gulp.task('build', ['lint', 'compress']);
gulp.task('watch', function() {
gulp.watch('src/**/*.js', ['default']);
});