Make WordPress Core

Changeset 54650


Ignore:
Timestamp:
10/19/2022 06:18:45 PM (2 years ago)
Author:
desrosj
Message:

General: Correctly refer to “npm” and “Node.js”.

This update all references to npm and Node.js to their correct spelling.

Fixes #56816.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r54649 r54650  
    2222      - '**.js'
    2323      - '**.php'
    24       # These files configure NPM. Changes could affect the outcome.
     24      # These files configure npm. Changes could affect the outcome.
    2525      - 'package*.json'
    2626      # These files configure Composer. Changes could affect the outcome.
     
    126126  # - Checks out the repository.
    127127  # - Logs debug information about the GitHub Action runner.
    128   # - Installs NodeJS.
     128  # - Installs Node.js.
    129129  # - Logs updated debug information.
    130   # _ Installs NPM dependencies.
     130  # _ Installs npm dependencies.
    131131  # - Run the WordPress JSHint checks.
    132132  # - Ensures version-controlled files are not modified or deleted.
     
    150150          svn --version
    151151
    152       - name: Install NodeJS
     152      - name: Install Node.js
    153153        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    154154        with:
  • trunk/.github/workflows/end-to-end-tests.yml

    r54511 r54650  
    3737  # - Checks out the repository.
    3838  # - Logs debug information about the GitHub Action runner.
    39   # - Installs NodeJS.
    40   # _ Installs NPM dependencies.
     39  # - Installs Node.js.
     40  # _ Installs npm dependencies.
    4141  # - Builds WordPress to run from the `build` directory.
    4242  # - Starts the WordPress Docker container.
     
    7373          locale -a
    7474
    75       - name: Install NodeJS
     75      - name: Install Node.js
    7676        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    7777        with:
  • trunk/.github/workflows/javascript-tests.yml

    r54511 r54650  
    2020      # Any change to a JavaScript file should run tests.
    2121      - '**.js'
    22       # These files configure NPM. Changes could affect the outcome.
     22      # These files configure npm. Changes could affect the outcome.
    2323      - 'package*.json'
    2424      # This file configures ESLint. Changes could affect the outcome.
     
    4545  # - Checks out the repository.
    4646  # - Logs debug information about the GitHub Action runner.
    47   # - Installs NodeJS.
     47  # - Installs Node.js.
    4848  # - Logs updated debug information.
    49   # _ Installs NPM dependencies.
     49  # _ Installs npm dependencies.
    5050  # - Run the WordPress QUnit tests.
    5151  # - Ensures version-controlled files are not modified or deleted.
     
    6767          svn --version
    6868
    69       - name: Install NodeJS
     69      - name: Install Node.js
    7070        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    7171        with:
  • trunk/.github/workflows/phpunit-tests.yml

    r54649 r54650  
    3838  # - Sets environment variables.
    3939  # - Sets up the environment variables needed for testing with memcached (if desired).
    40   # - Installs NodeJS.
    41   # - Installs NPM dependencies
     40  # - Installs Node.js.
     41  # - Installs npm dependencies
    4242  # - Configures caching for Composer.
    4343  # - Installs Composer dependencies.
     
    109109        uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
    110110
    111       - name: Install NodeJS
     111      - name: Install Node.js
    112112        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    113113        with:
  • trunk/.github/workflows/test-coverage.yml

    r54649 r54650  
    4040  # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).
    4141  # - Logs debug information about the GitHub Action runner.
    42   # - Installs NodeJS.
    43   # _ Installs NPM dependencies.
     42  # - Installs Node.js.
     43  # _ Installs npm dependencies.
    4444  # - Logs Docker debug information (about the Docker installation within the runner).
    4545  # - Starts the WordPress Docker container.
     
    8787          locale -a
    8888
    89       - name: Install NodeJS
     89      - name: Install Node.js
    9090        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    9191        with:
  • trunk/.github/workflows/test-npm.yml

    r54511 r54650  
    1 name: Test NPM
     1name: Test npm
    22
    33on:
     
    1616      - '[4-9].[0-9]'
    1717    paths:
    18       # These files configure NPM. Changes could affect the outcome.
     18      # These files configure npm. Changes could affect the outcome.
    1919      - 'package*.json'
    20       # JavaScript files are built using NPM.
     20      # JavaScript files are built using npm.
    2121      - '**.js'
    22       # CSS and SCSS files are built using NPM.
     22      # CSS and SCSS files are built using npm.
    2323      - '**.scss'
    2424      - '**.css'
     
    3838
    3939jobs:
    40   # Verifies that installing NPM dependencies and building WordPress works as expected.
     40  # Verifies that installing npm dependencies and building WordPress works as expected.
    4141  #
    4242  # Performs the following steps:
    4343  # - Checks out the repository.
    4444  # - Logs debug information about the GitHub Action runner.
    45   # - Installs NodeJS.
    46   # _ Installs NPM dependencies.
     45  # - Installs Node.js.
     46  # _ Installs npm dependencies.
    4747  # - Builds WordPress to run from the `build` directory.
    4848  # - Cleans up after building WordPress to the `build` directory.
     
    5252  # - Ensures version-controlled files are not modified or deleted.
    5353  test-npm:
    54     name: Test NPM on ${{ matrix.os }}
     54    name: Test npm on ${{ matrix.os }}
    5555    runs-on: ${{ matrix.os }}
    5656    timeout-minutes: 20
     
    7373          svn --version
    7474
    75       - name: Install NodeJS
     75      - name: Install Node.js
    7676        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    7777        with:
     
    100100        run: git diff --exit-code
    101101
    102   # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS.
     102  # Verifies that installing npm dependencies and building WordPress works as expected on MacOS.
    103103  #
    104104  # This is separate from the job above in order to use stricter conditions about when to run.
     
    108108  # - Checks out the repository.
    109109  # - Logs debug information about the GitHub Action runner.
    110   # - Installs NodeJS.
    111   # _ Installs NPM dependencies.
     110  # - Installs Node.js.
     111  # _ Installs npm dependencies.
    112112  # - Builds WordPress to run from the `build` directory.
    113113  # - Cleans up after building WordPress to the `build` directory.
     
    117117  # - Ensures version-controlled files are not modified or deleted.
    118118  test-npm-macos:
    119     name: Test NPM on MacOS
     119    name: Test npm on MacOS
    120120    runs-on: macos-latest
    121121    timeout-minutes: 30
     
    133133          svn --version
    134134
    135       - name: Install NodeJS
     135      - name: Install Node.js
    136136        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    137137        with:
  • trunk/README.md

    r54375 r54650  
    2020If you are not using a package manager, see the [Node.js download page](https://nodejs.org/en/download/) for installers and binaries.
    2121
    22 **Note:** WordPress currently only supports NodeJS `14.x` and npm `6.x`.
     22**Note:** WordPress currently only supports Node.js `14.x` and npm `6.x`.
    2323
    2424You will also need [Docker](https://www.docker.com/products/docker-desktop) installed and running on your computer. Docker is the virtualization software that powers the local development environment. Docker can be installed just like any other regular application.
  • trunk/SECURITY.md

    r54642 r54650  
    7777*   Any non-severe vulnerability on `irclogs.wordpress.org`, `lists.wordpress.org`, or any other low impact site.
    7878*   Clickjacking with minimal security implications
    79 *   Vulnerabilities in Composer/NPM `devDependencies`, unless there's a practical way to exploit it remotely.
     79*   Vulnerabilities in Composer/npm `devDependencies`, unless there's a practical way to exploit it remotely.
    8080*   Theoretical vulnerabilities where you can't demonstrate a significant security impact with a PoC.
    8181
  • trunk/src/index.php

    r53579 r54650  
    5656
    5757$die .= '<p>' . sprintf(
    58     /* translators: 1: NPM URL, 2: Handbook URL. */
    59     __( 'This requires <a href="%1$s">NPM</a>. <a href="%2$s">Learn more about setting up your local development environment</a>.' ),
     58    /* translators: 1: npm URL, 2: Handbook URL. */
     59    __( 'This requires <a href="%1$s">npm</a>. <a href="%2$s">Learn more about setting up your local development environment</a>.' ),
    6060    'https://www.npmjs.com/get-npm',
    6161    __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
  • trunk/src/js/_enqueues/vendor/README.md

    r46587 r54650  
    11# src/js/enqueues/vendor
    22
    3 In this directory you'll find vendor JavaScript packages that cannot be installed through NPM, but are included in WordPress. Below we've documented the sources for those packages.
     3In this directory you'll find vendor JavaScript packages that cannot be installed through npm, but are included in WordPress. Below we've documented the sources for those packages.
    44
    55## Folder dependencies
     
    6363- iris: https://github.com/Automattic/Iris
    6464- json2: https://github.com/douglascrockford/JSON-js
    65 - jquery/jquery.color: https://github.com/jquery/jquery-color. Package is on NPM but not published by maintainer.
     65- jquery/jquery.color: https://github.com/jquery/jquery-color. Package is on npm but not published by maintainer.
    6666- jquery/jquery.hotkeys: https://github.com/tzuryby/jquery.hotkeys
    67 - jquery/jquery.masonry: Old version for BC purposes, can't include two versions with NPM. The newer version is included through NPM and built to `wp-includes/js/masonry.min.js`
     67- jquery/jquery.masonry: Old version for BC purposes, can't include two versions with npm. The newer version is included through npm and built to `wp-includes/js/masonry.min.js`
    6868- jquery/jquery.query: https://github.com/blairmitchelmore/jquery.plugins/blob/master/jquery.query.js
    6969- jquery/jquery.schedule: https://github.com/rse/jquery-schedule
Note: See TracChangeset for help on using the changeset viewer.