Skip to content

Commit

Permalink
Encourage the use of npm ci to avoid package-lock conflict (#26837)
Browse files Browse the repository at this point in the history
* Update docs to use npm ci by default

* Use npm ci to build zip
  • Loading branch information
mkaz authored Nov 12, 2020
1 parent abe41c8 commit 1113ca9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 1113ca9

Please sign in to comment.