WordPress.org

Make WordPress Core

Changeset 50216


Ignore:
Timestamp:
02/05/2021 04:29:50 AM (9 months ago)
Author:
desrosj
Message:

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

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

Props desrosj, dd32, netweb, jorbin.
Merges [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 4.1 branch.
See #52341.

Location:
branches/4.1
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/.editorconfig

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

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

    r49661 r50216  
    1 v0.10.48
     114
  • branches/4.1/Gruntfile.js

    r30298 r50216  
    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.
     
    123124                src: ['wp-admin/css/colors/*/colors.scss'],
    124125                options: {
    125                     outputStyle: 'expanded'
     126                    implementation: sass
    126127                }
    127128            }
     
    336337        },
    337338        uglify: {
     339            options: {
     340                output: {
     341                    ie8: true
     342                }
     343            },
    338344            core: {
    339345                expand: true,
     
    361367            jqueryui: {
    362368                options: {
    363                     preserveComments: 'some'
     369                    output: {
     370                        comments: /^!/
     371                    }
    364372                },
    365373                expand: true,
  • branches/4.1/package.json

    r49423 r50216  
    11{
    2   "name": "WordPress",
    3   "version": "4.1.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": "~1.0.1",
    14     "grunt-contrib-clean": "~0.6.0",
    15     "grunt-contrib-compress": "~0.12.0",
    16     "grunt-contrib-concat": "~0.5.0",
    17     "grunt-contrib-copy": "~0.7.0",
    18     "grunt-contrib-cssmin": "~0.10.0",
    19     "grunt-contrib-imagemin": "~0.9.1",
    20     "grunt-contrib-jshint": "~0.10.0",
    21     "grunt-contrib-qunit": "~0.5.2",
    22     "grunt-contrib-uglify": "~0.6.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.1.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.1/src/wp-admin/css/colors/_admin.scss

    r30531 r50216  
    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.