updated gulp to V4

This commit is contained in:
2019-11-05 15:48:28 +01:00
parent a7f0bb7650
commit 6475b0c126
12 changed files with 3429 additions and 3399 deletions

View File

@@ -10,18 +10,17 @@ function handleError(err) {
// this.emit('end');
}
gulp.task('scripts', function () {
gulp.src('./js/*.js')
.pipe(jsmin())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('./js/dist/'));
gulp.task('scripts', done => {
gulp.src('./js/*.js')
.pipe(jsmin())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('./js/dist/'));
done()
});
gulp.task('default', function () {
});
// default gulp task
gulp.task('default', ['scripts'], function() {
gulp.watch('./js/*.js', ['scripts']);
});
gulp.task('default', gulp.series('scripts', function(done) {
gulp.watch('./js/*.js', gulp.series('scripts'));
done()
}));

0
sites/all/modules/gui/materiobasemod/js/dist/materio_flag.min.js vendored Normal file → Executable file
View File

View File

View File

0
sites/all/modules/gui/materiobasemod/js/dist/materio_user.min.js vendored Normal file → Executable file
View File

File diff suppressed because it is too large Load Diff

View File

@@ -7,10 +7,10 @@
"license": "GPLv3",
"homepage": "https://materio.com",
"devDependencies": {
"gulp": "<4",
"gulp": "latest",
"gulp-jsmin": "latest",
"gulp-rename": "^1.4.0",
"gulp-strip-debug": "^3.0.0",
"gulp-watch": "^5.0.1"
"gulp-rename": "latest",
"gulp-strip-debug": "latest",
"gulp-watch": "latest"
}
}