From 44869d85edff0519bd8497d6c962408d1fa9b7b8 Mon Sep 17 00:00:00 2001 From: viking1304 Date: Mon, 27 Mar 2023 10:20:34 +0200 Subject: [PATCH 1/3] Fix for node v10 --- gulpfile.babel.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 398732d..8b0342f 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -12,6 +12,9 @@ import path from 'path'; import merge from 'merge-stream'; import beep from 'beepbeep'; +// node v10 fix +import 'globalthis/auto'; + const $ = plugins(); var dartSass = require('gulp-sass'); diff --git a/package.json b/package.json index d7ac453..c1e2765 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,8 @@ "rimraf": "^2.3.3", "sass": "^1.35.2", "siphon-media-query": "^1.0.0", - "yargs": "^4.1.0" + "yargs": "^4.1.0", + "globalthis": "^1.0.3" }, "babel": { "presets": [ From 76ad5dd0da9dc1e4e55ffb041ad0386804ebdaea Mon Sep 17 00:00:00 2001 From: viking1304 Date: Mon, 27 Mar 2023 10:52:03 +0200 Subject: [PATCH 2/3] Add support for node v16 and newer --- gulpfile.babel.js | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 398732d..0e4eea9 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -14,8 +14,7 @@ import beep from 'beepbeep'; const $ = plugins(); -var dartSass = require('gulp-sass'); -dartSass.compiler = require('sass'); +var dartSass = require('gulp-sass')(require('sass')); // Look for the --production flag const PRODUCTION = !!yargs.argv.production; diff --git a/package.json b/package.json index d7ac453..9193fe5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "gulp-prompt": "^1.2.0", "gulp-rename": "^1.2.2", "gulp-rsync": "0.0.8", - "gulp-sass": "^4.1.0", + "gulp-sass": "^5.1.0", "gulp-sass-lint": "^1.4.0", "gulp-sourcemaps": "^2.6.5", "gulp-uncss": "^1.0.1", @@ -55,7 +55,7 @@ "merge-stream": "^1.0.0", "panini": "^1.3.0", "rimraf": "^2.3.3", - "sass": "^1.35.2", + "sass": "^1.49.9", "siphon-media-query": "^1.0.0", "yargs": "^4.1.0" }, From 16318422fd7038f38f769a1e5d1227a86da5c16e Mon Sep 17 00:00:00 2001 From: viking1304 Date: Thu, 30 Mar 2023 12:26:58 +0200 Subject: [PATCH 3/3] Update used node modules, maintaining v10 compatibility --- package.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index e471fd9..01a6ebf 100644 --- a/package.json +++ b/package.json @@ -24,40 +24,40 @@ "browser-sync": "^2.11.0", "colors": "^1.1.2", "gulp": "^4.0.2", - "gulp-autoprefixer": "^7.0.1", + "gulp-autoprefixer": "^8.0.0", "gulp-cached": "^1.1.0", "gulp-concat": "^2.6.0", "gulp-htmlmin": "^5.0.1", "gulp-if": "^3.0.0", "gulp-inject-string": "^1.1.0", - "gulp-inline-css": "^3.4.0", + "gulp-inline-css": "^4.0.0", "gulp-load-plugins": "^2.0.1", - "gulp-postcss": "^8.0.0", + "gulp-postcss": "^9.0.1", "gulp-prettify": "^0.5.0", "gulp-prompt": "^1.2.0", - "gulp-rename": "^1.2.2", - "gulp-rsync": "0.0.8", + "gulp-rename": "^2.0.0", + "gulp-rsync": "0.1.0", "gulp-sass": "^5.1.0", "gulp-sass-lint": "^1.4.0", - "gulp-sourcemaps": "^2.6.5", + "gulp-sourcemaps": "^3.0.0", "gulp-uncss": "^1.0.1", "gulp-wrap": "^0.15.0", "gulp-zip": "^5.0.1", - "gulp-awspublish": "^3.0.1", - "gulp-cli": "^1.1.0", + "gulp-awspublish": "^7.1.0", + "gulp-cli": "^2.3.0", "gulp-html-src": "^1.0.0", - "gulp-imagemin": "^2.4.0", + "gulp-imagemin": "^7.1.0", "gulp-litmus": "0.0.7", - "gulp-mail": "^0.1.1", - "gulp-replace": "^0.5.4", + "gulp-mail": "^0.4.2", + "gulp-replace": "^1.1.4", "inky": "^1.4.1", "lazypipe": "^1.0.1", - "merge-stream": "^1.0.0", - "panini": "^1.3.0", - "rimraf": "^2.3.3", + "merge-stream": "^2.0.0", + "panini": "^1.7.1", + "rimraf": "^3.0.2", "sass": "^1.49.9", "siphon-media-query": "^1.0.0", - "yargs": "^4.1.0", + "yargs": "^16.2.0", "globalthis": "^1.0.3" }, "babel": {