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 35 36 37
|
Description: skip playwright-webkit
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-08-25
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -15,19 +15,13 @@
const fs = require( "fs" );
const { spawn } = require( "child_process" );
const zlib = require( "zlib" );
- const nodeV16OrNewer = !/^v1[0-5]\./.test( process.version );
const nodeV17OrNewer = !/^v1[0-6]\./.test( process.version );
const customBrowsers = process.env.BROWSERS && process.env.BROWSERS.split( "," );
// Support: Node.js <16
// Skip running tasks that dropped support for old Node.js in these Node versions.
function runIfNewNode( task ) {
- return nodeV16OrNewer ? task : "print_old_node_message:" + task;
- }
-
- if ( nodeV16OrNewer ) {
- const playwright = require( "playwright-webkit" );
- process.env.WEBKIT_HEADLESS_BIN = playwright.webkit.executablePath();
+ return "print_old_node_message:" + task;
}
if ( !grunt.option( "filename" ) ) {
@@ -353,7 +347,7 @@
// Load grunt tasks from NPM packages
require( "load-grunt-tasks" )( grunt, {
- pattern: nodeV16OrNewer ? [ "grunt-*" ] : [ "grunt-*", "!grunt-eslint" ]
+ pattern: [ "grunt-*", "!grunt-eslint" ]
} );
// Integrate jQuery specific tasks
|