From a16f8bbf1ec936d2847b4b7ebd81d360c060a564 Mon Sep 17 00:00:00 2001 From: albanblanchard Date: Tue, 11 Oct 2022 13:58:55 +0200 Subject: [PATCH 1/2] update dependencies and add `babel/peset-env` --- package.json | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 516a181..9a504d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wordpress-gulp-jade-stylus", - "version": "1.2.1", + "version": "1.2.2", "description": "A skeleton app for Wordpress with Jade + Stylus support", "repository": { "type": "git", @@ -13,11 +13,14 @@ }, "homepage": "https://github.com/o5r/wordpress-gulp-jade-stylus", "dependencies": { + "@babel/core": "^7.18.6", + "@babel/preset-env": "^7.18.6", + "@babel/runtime": "^7.18.6", "babel-plugin-transform-remove-strict-mode": "0.0.2", "babel-preset-env": "1.7.0", "del": "5.1.0", "gulp": "4.0.2", - "gulp-babel": "6.1.2", + "gulp-babel": "^8.0.0", "gulp-cached": "1.1.1", "gulp-clean-css": "4.2.0", "gulp-concat": "2.6.1", @@ -28,21 +31,23 @@ "gulp-jade-php": "1.1.0", "gulp-order": "1.2.0", "gulp-plumber": "1.2.1", - "gulp-replace": "1.0.0", "gulp-remember": "0.3.1", + "gulp-replace": "1.0.0", + "gulp-rev": "^9.0.0", "gulp-sort": "2.0.0", "gulp-sourcemaps": "2.6.5", - "gulp-stylus": "2.7.0", + "gulp-stylus": "2.7.1", "gulp-uglify": "3.0.2", "gulp-unzip": "1.1.0", - "gulp-wp-pot": "2.3.5", + "gulp-wp-pot": "^2.5.0", "gulp-wrap": "0.15.0", "jeet": "7.2.0", "lodash": "4.17.19", - "nib": "1.1.2", + "nib": "^1.2.0", "yargs": "14.2.0" }, "devDependencies": { - "browser-sync": "2.26.3" + "@babel/plugin-transform-runtime": "^7.18.6", + "browser-sync": "^2.27.10" } } From 8754e3b508cd143eb25f8d72b49ae1ba9409402e Mon Sep 17 00:00:00 2001 From: albanblanchard Date: Tue, 11 Oct 2022 14:19:23 +0200 Subject: [PATCH 2/2] update dependencies and add babel's `peset-env` + `transform-runtime` --- gulpfile.js | 14 +++++++------- package.json | 19 ++++++++++++------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index cb3da94..f6fe971 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -150,13 +150,13 @@ gulp.task('compileJavascripts', function() { .pipe(order([ 'jquery.js' ])) .pipe(cache('core')) .pipe(sourcemaps.init({loadMaps: true})) - .pipe(babel({ - presets: [['env', { targets: { ie: 9 } }]], - plugins: ['transform-remove-strict-mode'] - })) - .pipe(remember('core')) - .pipe(concat(fileName)) - .pipe(gulpif(config.production, uglify({compress: false}))) + .pipe(babel({ + presets: [['@babel/preset-env', { targets: { ie: 9 } }]], + plugins: ['transform-remove-strict-mode', '@babel/transform-runtime'] + })) + .pipe(remember('core')) + .pipe(concat(fileName)) + .pipe(gulpif(config.production, uglify({compress: false}))) .pipe(sourcemaps.write('./')) .pipe(gulp.dest(paths.destination)) .pipe(gulpif(!config.production, server.stream())); diff --git a/package.json b/package.json index 516a181..9a504d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wordpress-gulp-jade-stylus", - "version": "1.2.1", + "version": "1.2.2", "description": "A skeleton app for Wordpress with Jade + Stylus support", "repository": { "type": "git", @@ -13,11 +13,14 @@ }, "homepage": "https://github.com/o5r/wordpress-gulp-jade-stylus", "dependencies": { + "@babel/core": "^7.18.6", + "@babel/preset-env": "^7.18.6", + "@babel/runtime": "^7.18.6", "babel-plugin-transform-remove-strict-mode": "0.0.2", "babel-preset-env": "1.7.0", "del": "5.1.0", "gulp": "4.0.2", - "gulp-babel": "6.1.2", + "gulp-babel": "^8.0.0", "gulp-cached": "1.1.1", "gulp-clean-css": "4.2.0", "gulp-concat": "2.6.1", @@ -28,21 +31,23 @@ "gulp-jade-php": "1.1.0", "gulp-order": "1.2.0", "gulp-plumber": "1.2.1", - "gulp-replace": "1.0.0", "gulp-remember": "0.3.1", + "gulp-replace": "1.0.0", + "gulp-rev": "^9.0.0", "gulp-sort": "2.0.0", "gulp-sourcemaps": "2.6.5", - "gulp-stylus": "2.7.0", + "gulp-stylus": "2.7.1", "gulp-uglify": "3.0.2", "gulp-unzip": "1.1.0", - "gulp-wp-pot": "2.3.5", + "gulp-wp-pot": "^2.5.0", "gulp-wrap": "0.15.0", "jeet": "7.2.0", "lodash": "4.17.19", - "nib": "1.1.2", + "nib": "^1.2.0", "yargs": "14.2.0" }, "devDependencies": { - "browser-sync": "2.26.3" + "@babel/plugin-transform-runtime": "^7.18.6", + "browser-sync": "^2.27.10" } }