style: use " instead of ' in Gulpfile

This commit is contained in:
Oliver Booth 2024-02-26 00:43:57 +00:00
parent faf3c4c3a8
commit 97170dcb44
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -1,19 +1,19 @@
const gulp = require('gulp'); const gulp = require("gulp");
const sass = require('gulp-sass')(require('sass')); const sass = require('gulp-sass')(require("sass"));
const cleanCSS = require('gulp-clean-css'); const cleanCSS = require("gulp-clean-css");
const rename = require('gulp-rename'); const rename = require("gulp-rename");
const ts = require('gulp-typescript'); const ts = require("gulp-typescript");
const terser = require('gulp-terser'); const terser = require("gulp-terser");
const webpack = require('webpack-stream'); const webpack = require("webpack-stream");
const srcDir = 'src'; const srcDir = "src";
const destDir = 'OliverBooth/wwwroot'; const destDir = "OliverBooth/wwwroot";
function compileSCSS() { function compileSCSS() {
return gulp.src(`${srcDir}/scss/**/*.scss`) return gulp.src(`${srcDir}/scss/**/*.scss`)
.pipe(sass().on('error', sass.logError)) .pipe(sass().on("error", sass.logError))
.pipe(cleanCSS({ compatibility: 'ie11' })) .pipe(cleanCSS({compatibility: "ie11"}))
.pipe(rename({ suffix: '.min' })) .pipe(rename({suffix: ".min"}))
.pipe(gulp.dest(`${destDir}/css`)); .pipe(gulp.dest(`${destDir}/css`));
} }
@ -25,20 +25,20 @@ function compileTS() {
} }
function bundleJS() { function bundleJS() {
return gulp.src('tmp/js/*.js') return gulp.src("tmp/js/*.js")
.pipe(webpack({ mode: 'production', output: { filename: 'app.min.js' } })) .pipe(webpack({ mode: "production", output: { filename: "app.min.js" } }))
.pipe(gulp.dest(`${destDir}/js`)); .pipe(gulp.dest(`${destDir}/js`));
} }
function copyJS() { function copyJS() {
return gulp.src(`${srcDir}/ts/**/*.js`) return gulp.src(`${srcDir}/ts/**/*.js`)
.pipe(rename({ suffix: '.min' })) .pipe(rename({suffix: ".min"}))
.pipe(gulp.dest(`${destDir}/js`)); .pipe(gulp.dest(`${destDir}/js`));
} }
function copyCSS() { function copyCSS() {
return gulp.src(`${srcDir}/scss/**/*.css`) return gulp.src(`${srcDir}/scss/**/*.css`)
.pipe(rename({ suffix: '.min' })) .pipe(rename({suffix: ".min"}))
.pipe(gulp.dest(`${destDir}/css`)); .pipe(gulp.dest(`${destDir}/css`));
} }