text: const autoprefixer=require("gulp-autoprefixer");const browsersync=require("browser-sync").create();const cleanCSS=require("gulp-clean-css");const gulp=require("gulp");const header=require("gulp-header");const plumber=require("gulp-plumber");const rename=require("gulp-rename");const sass=require("gulp-sass");const uglify=require("gulp-uglify");const pkg=require("./package.json");const banner=["/*!\n"," * Start Bootstrap - <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n"," * Copyright 2013-"+(new Date()).getFullYear()," <%= pkg.author %>\n"," * Licensed under <%= pkg.license %> (https://github.com/BlackrockDigital/<%= pkg.name %>/blob/master/LICENSE)\n"," */\n","\n"].join("");gulp.task("vendor",function(a){gulp.src(["./node_modules/bootstrap/dist/**/*","!./node_modules/bootstrap/dist/css/bootstrap-grid*","!./node_modules/bootstrap/dist/css/bootstrap-reboot*"]).pipe(gulp.dest("./vendor/bootstrap"));gulp.src(["./node_modules/@fortawesome/**/*"]).pipe(gulp.dest("./vendor"));gulp.src(["./node_modules/jquery/dist/*","!./node_modules/jquery/dist/core.js"]).pipe(gulp.dest("./vendor/jquery"));a()});function css(){return gulp.src("./scss/*.scss").pipe(plumber()).pipe(sass({outputStyle:"expanded"})).on("error",sass.logError).pipe(autoprefixer({browsers:["last 2 versions"],cascade:false})).pipe(header(banner,{pkg:pkg})).pipe(gulp.dest("./css")).pipe(rename({suffix:".min"})).pipe(cleanCSS()).pipe(gulp.dest("./css")).pipe(browsersync.stream())}function js(){return gulp.src(["./js/*.js","!./js/*.min.js","!./js/contact_me.js","!./js/jqBootstrapValidation.js"]).pipe(uglify()).pipe(header(banner,{pkg:pkg})).pipe(rename({suffix:".min"})).pipe(gulp.dest("./js")).pipe(browsersync.stream())}gulp.task("css",css);gulp.task("js",js);function browserSync(a){browsersync.init({server:{baseDir:"./"}});a()}function browserSyncReload(a){browsersync.reload();a()}function watchFiles(){gulp.watch("./scss/**/*",css);gulp.watch(["./js/**/*.js","!./js/*.min.js"],js);gulp.watch("./**/*.html",browserSyncReload)}gulp.task("default",gulp.parallel("vendor",css,js));gulp.task("dev",gulp.parallel(watchFiles,browserSync));