Make WordPress Core

Changeset 50220


Ignore:
Timestamp:
02/05/2021 04:39:11 AM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Support NodeJS 14.x in the 3.9 branch.

This updates the 3.9 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy.

Because older branches use (really) old versions of NodeJS, the local Docker environment cannot be backported since the needed dependencies will not run on these older versions (see #48301). This also blocks the ability to move automated testing over to GitHub Actions (see #50401).

This change also introduces a packager-lock.json file to the branch.

In addition to backporting the package updates that happened after branching 3.9, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin.
Merges [28695,28796,28821,29270,29505,29858-30059,30061-30063,30066-30067,31425,31504,31557,31648-31650,32356-32357,32988,33726,35363,35513,35521,35538-35541,35859,36861-36865,37017,37019,37020,37212,37612,38111,39110,39113,39115-39117,39478,41835,42460-42461,42463,42887,43320,43323,43977,44219,44233,45321,45765,46404,46408-46409,47404,47867,47872-47873,48705,49636,49933,49937,49939,50126,50176,50185] to the 3.9 branch.
See #52341.

Location:
branches/3.9
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/.editorconfig

    r27198 r50220  
    1414indent_style = tab
    1515
    16 [*.json]
     16[*.yml]
    1717indent_style = space
    1818indent_size = 2
    1919
    20 [*.txt,wp-config-sample.php]
     20[{}*.txt,wp-config-sample.php}]
    2121end_of_line = crlf
  • branches/3.9/.jshintrc

    r26136 r50220  
    2020        "Backbone": false,
    2121        "jQuery": false,
     22        "JSON": false,
    2223        "wp": false
    2324    }
  • branches/3.9/.nvmrc

    r49663 r50220  
    1 v0.10.48
     114
  • branches/3.9/Gruntfile.js

    r47333 r50220  
    33    var path = require('path'),
    44        SOURCE_DIR = 'src/',
    5         BUILD_DIR = 'build/';
     5        BUILD_DIR = 'build/',
     6        sass = require( 'sass' );
    67
    78    // Load tasks.
    8     require('matchdep').filterDev('grunt-*').forEach( grunt.loadNpmTasks );
     9    require('matchdep').filterDev(['grunt-*', '!grunt-legacy-util']).forEach( grunt.loadNpmTasks );
     10    // Load legacy utils
     11    grunt.util = require('grunt-legacy-util');
    912
    1013    // Project configuration.
     
    111114                src: ['wp-admin/css/colors/*/colors.scss'],
    112115                options: {
    113                     outputStyle: 'expanded'
     116                    implementation: sass
    114117                }
    115118            }
     
    281284        },
    282285        uglify: {
     286            options: {
     287                output: {
     288                    ie8: true
     289                }
     290            },
    283291            core: {
    284292                expand: true,
  • branches/3.9/package.json

    r49425 r50220  
    11{
    2   "name": "WordPress",
    3   "version": "3.9.33",
    4   "description": "WordPress is web software you can use to create a beautiful website or blog.",
    5   "repository": {
    6     "type": "svn",
    7     "url": "https://develop.svn.wordpress.org/trunk"
    8   },
    9   "author": "The WordPress Contributors",
    10   "license": "GPLv2 or later",
    11   "devDependencies": {
    12     "grunt": "~0.4.2",
    13     "grunt-autoprefixer": "~0.7.1",
    14     "grunt-contrib-clean": "~0.5.0",
    15     "grunt-contrib-compress": "~0.6.0",
    16     "grunt-contrib-concat": "~0.3.0",
    17     "grunt-contrib-copy": "~0.5.0",
    18     "grunt-contrib-cssmin": "~0.7.0",
    19     "grunt-contrib-imagemin": "~0.4.1",
    20     "grunt-contrib-jshint": "~0.10.0",
    21     "grunt-contrib-qunit": "~0.4.0",
    22     "grunt-contrib-uglify": "~0.3.0",
    23     "grunt-contrib-watch": "~0.5.3",
    24     "grunt-cssjanus": "~0.2.2",
    25     "grunt-jsvalidate": "~0.2.2",
    26     "grunt-legacy-util": "^0.2.0",
    27     "grunt-patch-wordpress": "~0.2.1",
    28     "grunt-sass": "~0.16.0",
    29     "matchdep": "~0.3.0"
    30   }
     2    "name": "WordPress",
     3    "version": "3.9.33",
     4    "description": "WordPress is web software you can use to create a beautiful website or blog.",
     5    "repository": {
     6        "type": "svn",
     7        "url": "https://develop.svn.wordpress.org/trunk"
     8    },
     9    "engines": {
     10        "node": ">=14.15.0",
     11        "npm": ">=6.14.8"
     12    },
     13    "author": "The WordPress Contributors",
     14    "license": "GPLv2 or later",
     15    "devDependencies": {
     16        "grunt": "~1.3.0",
     17        "grunt-autoprefixer": "~3.0.0",
     18        "grunt-contrib-clean": "~2.0.0",
     19        "grunt-contrib-compress": "~2.0.0",
     20        "grunt-contrib-concat": "1.0.1",
     21        "grunt-contrib-copy": "~1.0.0",
     22        "grunt-contrib-cssmin": "~3.0.0",
     23        "grunt-contrib-imagemin": "~4.0.0",
     24        "grunt-contrib-jshint": "3.0.0",
     25        "grunt-contrib-qunit": "^4.0.0",
     26        "grunt-contrib-uglify": "~5.0.0",
     27        "grunt-contrib-watch": "~1.1.0",
     28        "grunt-cssjanus": "~0.5.0",
     29        "grunt-jsvalidate": "~0.2.2",
     30        "grunt-legacy-util": "^2.0.0",
     31        "grunt-patch-wordpress": "~3.0.0 ",
     32        "grunt-sass": "~3.1.0",
     33        "matchdep": "~2.0.0",
     34        "sass": "^1.32.6"
     35    }
    3136}
  • branches/3.9/src/wp-admin/css/colors/_admin.scss

    r28127 r50220  
    358358}
    359359
    360 #wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: $menu-text; opacity: .7; }
    361 #wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: $menu-text; opacity: .7; }
    362 #wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: $menu-text; opacity: .7; }
    363 #wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: $menu-text; opacity: .7; }
     360#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: $menu-text; opacity: 0.7; }
     361#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: $menu-text; opacity: 0.7; }
     362#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: $menu-text; opacity: 0.7; }
     363#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: $menu-text; opacity: 0.7; }
    364364
    365365
Note: See TracChangeset for help on using the changeset viewer.