-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgulpfile.js
34 lines (28 loc) · 1.03 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Gulp General Packages */
"use strict";
const gulp = require("gulp");
const path = require("path");
const themeDirectory = `web/app/themes/whatjackhasmade`;
/* SCSS/CSS Packages */
const sass = require("gulp-sass");
const sassGlob = require("gulp-sass-glob");
const plumber = require("gulp-plumber");
const notify = require("gulp-notify");
const cleanCSS = require("gulp-clean-css");
const autoprefixer = require("gulp-autoprefixer");
/* Browsersync Packages */
const browserSync = require("browser-sync").create();
/* JS Babel and Minifcation Packages */
const babel = require("gulp-babel");
const concat = require("gulp-concat");
const sourcemaps = require("gulp-sourcemaps");
const uglify = require("gulp-uglify-es").default;
/* Gulp Task: Browsersync change on file updates */
gulp.task("watch", () => {
browserSync.init({
proxy: "https://whatjackhasmade.local",
});
gulp.watch(`${themeDirectory}/*.php`).on("change", browserSync.reload);
});
/* Gulp Task: run `gulp` in the terminal */
gulp.task("default", gulp.series(["watch"]));