Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encourage the use of npm ci to avoid package-lock conflict #26837

Merged
merged 2 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ done

# Run the build.
status "Installing dependencies... 📦"
npm install
npm ci
status "Generating build... 👷‍♀️"
npm run build

Expand Down
2 changes: 1 addition & 1 deletion docs/contributors/getting-started-native-mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Before running the demo app, you need to download and install the project depend

```
nvm install --latest-npm
npm install
npm ci
```

## Run
Expand Down
4 changes: 2 additions & 2 deletions docs/contributors/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ After installing Node, you can build Gutenberg by running the following from wit


```bash
npm install
npm ci
npm run build
```

Expand Down Expand Up @@ -124,7 +124,7 @@ Tools like MAMP tend to configure MySQL to use ports other than the default 3306

You can use a remote server in development by building locally and then uploading the built files as a plugin to the remote server.

To build: open a terminal (or if on Windows, a command prompt) and navigate to the repository you cloned. Now type `npm install` to get the dependencies all set up. Once that finishes, you can type `npm run build`.
To build: open a terminal (or if on Windows, a command prompt) and navigate to the repository you cloned. Now type `npm ci` to get the dependencies all set up. Once that finishes, you can type `npm run build`.

After building the cloned gutenberg directory contains the complete plugin, you can upload the entire repository to your `wp-content/plugins` directory and activate the plugin from the WordPress admin.

Expand Down