WordPress.org

Make WordPress Core

Changeset 50218


Ignore:
Timestamp:
02/05/2021 04:33:16 AM (5 months ago)
Author:
desrosj
Message:

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

This updates the 4.0 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 4.0, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin.
Merges [30059-30063,30066-30067,31425,31504,31557,31648,31649-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,50192] to the 4.0 branch.
See #52341.

Location:
branches/4.0
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/.editorconfig

    r28821 r50218  
    1414indent_style = tab
    1515
    16 [{*.json,*.yml}]
     16[*.yml]
    1717indent_style = space
    1818indent_size = 2
  • branches/4.0/.jshintrc

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

    r49662 r50218  
    1 v0.10.48
     114
  • branches/4.0/Gruntfile.js

    r29256 r50218  
    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.
     
    121122                src: ['wp-admin/css/colors/*/colors.scss'],
    122123                options: {
    123                     outputStyle: 'expanded'
     124                    implementation: sass
    124125                }
    125126            }
     
    330331        },
    331332        uglify: {
     333            options: {
     334                output: {
     335                    ie8: true
     336                }
     337            },
    332338            core: {
    333339                expand: true,
  • branches/4.0/package.json

    r49424 r50218  
    11{
    2   "name": "WordPress",
    3   "version": "4.0.32",
    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.5",
    13     "grunt-autoprefixer": "~0.8.2",
    14     "grunt-contrib-clean": "~0.5.0",
    15     "grunt-contrib-compress": "~0.10.0",
    16     "grunt-contrib-concat": "~0.5.0",
    17     "grunt-contrib-copy": "~0.5.0",
    18     "grunt-contrib-cssmin": "~0.10.0",
    19     "grunt-contrib-imagemin": "~0.4.1",
    20     "grunt-contrib-jshint": "~0.10.0",
    21     "grunt-contrib-qunit": "~0.5.2",
    22     "grunt-contrib-uglify": "~0.5.0",
    23     "grunt-contrib-watch": "~0.6.1",
    24     "grunt-cssjanus": "git://github.com/ocean90/grunt-cssjanus.git#936144c11fdee00427c3ce3cb0f87ee5770149b7",
    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": "4.0.32",
     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/4.0/src/wp-admin/css/colors/_admin.scss

    r29697 r50218  
    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.