mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 23:15:32 -06:00
Update a few packages
This commit is contained in:
@@ -1,20 +1,23 @@
|
||||
const eslint = require('gulp-eslint');
|
||||
const uglify = require('gulp-uglify');
|
||||
const eslint = require('gulp-eslint');
|
||||
const uglify = require('gulp-uglify');
|
||||
|
||||
const jsPath = '_scripts/*.js';
|
||||
const jsPath = '_scripts/*.js';
|
||||
const destPath = '_site/js';
|
||||
|
||||
module.exports = gulp => {
|
||||
|
||||
gulp.task('scripts', () => {
|
||||
return gulp.src(jsPath)
|
||||
.pipe(eslint({
|
||||
useEslintrc: true
|
||||
}))
|
||||
.pipe(eslint.format())
|
||||
// .pipe(uglify())
|
||||
.pipe(gulp.dest(destPath))
|
||||
.pipe(gulp.dest('js'));
|
||||
return (
|
||||
gulp
|
||||
.src(jsPath)
|
||||
.pipe(
|
||||
eslint({
|
||||
useEslintrc: true,
|
||||
})
|
||||
)
|
||||
.pipe(eslint.format())
|
||||
// .pipe(uglify())
|
||||
.pipe(gulp.dest(destPath))
|
||||
.pipe(gulp.dest('js'))
|
||||
);
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user