Skip to content

Commit 16699c3

Browse files
committed
General: Correctly refer to “npm” and “Node.js”.
This update all references to npm and Node.js to their correct spelling. Fixes #56816. git-svn-id: https://develop.svn.wordpress.org/trunk@54650 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 47af196 commit 16699c3

File tree

10 files changed

+38
-38
lines changed

10 files changed

+38
-38
lines changed

.github/workflows/coding-standards.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
# Any change to a PHP or JavaScript file should run checks.
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.
2727
- 'composer.*'
@@ -125,9 +125,9 @@ jobs:
125125
# Performs the following steps:
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.
133133
jshint:
@@ -149,7 +149,7 @@ jobs:
149149
git --version
150150
svn --version
151151
152-
- name: Install NodeJS
152+
- name: Install Node.js
153153
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
154154
with:
155155
node-version-file: '.nvmrc'

.github/workflows/end-to-end-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
# - Sets environment variables.
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.
4343
# - Logs general debug information.
@@ -72,7 +72,7 @@ jobs:
7272
php -i
7373
locale -a
7474
75-
- name: Install NodeJS
75+
- name: Install Node.js
7676
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
7777
with:
7878
node-version-file: '.nvmrc'

.github/workflows/javascript-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
paths:
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.
2525
- '.eslintignore'
@@ -44,9 +44,9 @@ jobs:
4444
# Performs the following steps:
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.
5252
test-js:
@@ -66,7 +66,7 @@ jobs:
6666
git --version
6767
svn --version
6868
69-
- name: Install NodeJS
69+
- name: Install Node.js
7070
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
7171
with:
7272
node-version-file: '.nvmrc'

.github/workflows/phpunit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
# Performs the following steps:
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.
4444
# - Logs Docker debug information (about the Docker installation within the runner).
@@ -108,7 +108,7 @@ jobs:
108108
- name: Checkout repository
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:
114114
node-version-file: '.nvmrc'

.github/workflows/test-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
# - Checks out the repository.
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.
4646
# - Logs debug general information.
@@ -86,7 +86,7 @@ jobs:
8686
php -i
8787
locale -a
8888
89-
- name: Install NodeJS
89+
- name: Install Node.js
9090
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
9191
with:
9292
node-version-file: '.nvmrc'

.github/workflows/test-npm.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test NPM
1+
name: Test npm
22

33
on:
44
push:
@@ -15,11 +15,11 @@ on:
1515
- '3.[7-9]'
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'
2525
# Changes to workflow files should always verify all workflows are successful.
@@ -37,21 +37,21 @@ env:
3737
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
3838

3939
jobs:
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.
4949
# - Ensures version-controlled files are not modified or deleted.
5050
# - Builds WordPress to run from the `src` directory.
5151
# - Cleans up after building WordPress to the `src` 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
5757
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
@@ -72,7 +72,7 @@ jobs:
7272
git --version
7373
svn --version
7474
75-
- name: Install NodeJS
75+
- name: Install Node.js
7676
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
7777
with:
7878
node-version-file: '.nvmrc'
@@ -99,24 +99,24 @@ jobs:
9999
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
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.
105105
# This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate.
106106
#
107107
# Performs the following steps:
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.
114114
# - Ensures version-controlled files are not modified or deleted.
115115
# - Builds WordPress to run from the `src` directory.
116116
# - Cleans up after building WordPress to the `src` 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
122122
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
@@ -132,7 +132,7 @@ jobs:
132132
git --version
133133
svn --version
134134
135-
- name: Install NodeJS
135+
- name: Install Node.js
136136
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
137137
with:
138138
node-version-file: '.nvmrc'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You will need Node and npm installed on your computer. Node is a JavaScript runt
1919

2020
If 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

2424
You 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.
2525

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ We generally **aren’t** interested in the following problems:
7676
* Output from automated scans - please manually verify issues and include a valid proof of concept.
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

8282
## Guidelines

src/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
$die .= '</ul>';
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/' )
6262
) . '</p>';

src/js/_enqueues/vendor/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.
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.
44

55
## Folder dependencies
66

@@ -62,9 +62,9 @@ In this directory you'll find vendor JavaScript packages that cannot be installe
6262
- farbtastic: https://github.com/mattfarina/farbtastic
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
7070
- jquery/jquery.serializeobject: https://github.com/cowboy/jquery-misc/blob/master/jquery.ba-serializeobject.js

0 commit comments

Comments
 (0)