Updated How to set up WooCommerce development environment (markdown)

Christopher Allford 2021-10-21 12:34:34 -07:00
parent 53494a060c
commit 9799e0f25e
1 changed files with 8 additions and 4 deletions

@ -38,18 +38,22 @@ To install WooCommerce on your WordPress installation, you need to decide whethe
In your terminal: In your terminal:
1. Go to the WordPress plugins directory: 1. Go to the WordPress installation folder:
``` ```
$ cd ~/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/ $ cd ~/vagrant-local/www/wordpress-one/
``` ```
2. Clone the repository: 2. Clone the repository:
* If cloning WooCommerce repository: * If cloning WooCommerce repository:
``` ```
$ git clone git@github.com:woocommerce/woocommerce.git $ git clone git@github.com:woocommerce/woocommerce.git woocommerce-monorepo
``` ```
* If cloning your own fork replace `USER_NAME` with your GitHub username: * If cloning your own fork replace `USER_NAME` with your GitHub username:
``` ```
$ git clone git@github.com:USER_NAME/woocommerce.git $ git clone git@github.com:USER_NAME/woocommerce.git woocommerce-monorepo
```
3. Link the plugin to your WordPress plugins directory:
```
$ ln -s ~/vagrant-local/www/wordpress-one/woocommerce-monorepo/plugins/woocommerce ~/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce
``` ```
## Install dependencies and generate assets ## Install dependencies and generate assets