Skip to content

Commit

Permalink
Generalize section to Node + Composer deps, leaving PHPUnit for Gathe…
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanPak committed Sep 17, 2024
1 parent c8a5a47 commit ddce519
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/developer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,13 @@ In fact, after the initial setup, you may notice that in your code editor, there

![Development Site Plugins/Themes](../media/gitignore—gatherpress.png)

#### Running PHPUnit Tests (`wp-env`)
#### Installing Dependencies

1. Install Node. [NVM](https://github.com/nvm-sh/nvm) is recommended, using `nvm use` in the GatherPress directory before any `npm` command.
1. Install the version of Node in `.nvmrc.`. [NVM](https://github.com/nvm-sh/nvm) can be used to achieve this.
2. Install [Composer](https://getcomposer.org/doc/00-intro.md)
3. In your terminal window, `cd` to the `gatherpress` directory
4. Run `npm install` to get node depdendencies
4. Run `npm install` to get node dependencies
5. Run `composer install` to get PHPUnit dependencies
6. Run `npm run test:unit:php` to execute tests

#### To shut down your development session

Expand Down

0 comments on commit ddce519

Please sign in to comment.