From e44711e7796cbc5ebebb9e7eda89fea2b1d8babd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Wed, 25 Oct 2023 20:27:06 +0200 Subject: [PATCH] Using arrow functions --- gulpfile.mjs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 47328611..d02222ff 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -8,25 +8,25 @@ import webpack from "webpack-stream"; import backendWebpackConfig from "./backend.webpack.config.js"; import frontendWebpackConfig from "./frontend.webpack.config.js"; -gulp.task("build:appsscript", function () { - return gulp.src("src/appsscript.json").pipe(gulp.dest("dist/")); -}); +gulp.task("build:appsscript", () => + gulp.src("src/appsscript.json").pipe(gulp.dest("dist/")), +); -gulp.task("build:frontend", function () { - return gulp +gulp.task("build:frontend", () => + gulp .src("src/frontend/index.ts") .pipe(webpack(frontendWebpackConfig(undefined, {}))) .pipe(filter(["index.html"])) .pipe(replace("\u0085", "\\u0085")) - .pipe(gulp.dest("dist/")); -}); + .pipe(gulp.dest("dist/")), +); -gulp.task("build:backend", function () { - return gulp +gulp.task("build:backend", () => + gulp .src("src/backend/index.ts") .pipe(webpack(backendWebpackConfig)) - .pipe(gulp.dest("dist/")); -}); + .pipe(gulp.dest("dist/")), +); gulp.task( "build",