From 8724873dd94cff2601969d7d28edc866d52a0684 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 26 Jul 2019 16:38:14 -0300 Subject: [PATCH] Move instructions to install dependencies to the section on how to generate assets --- ...t-up-WooCommerce-development-environment.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/How-to-set-up-WooCommerce-development-environment.md b/How-to-set-up-WooCommerce-development-environment.md index b5e9181..e0e61eb 100644 --- a/How-to-set-up-WooCommerce-development-environment.md +++ b/How-to-set-up-WooCommerce-development-environment.md @@ -32,7 +32,7 @@ To configure our local WordPress instance, you will need to: 3. Install and provision [VVV](https://varyingvagrantvagrants.org/docs/en-US/installation/) 4. If everything worked as expected, you should have a WordPress installation running on the following URL: https://one.wordpress.test. This is the WP site that we will use to install WooCommerce. -## Clone WooCommerce repository and install dependencies +## Clone WooCommerce repository To install WooCommerce on your WordPress installation, you need to decide whether you will clone the WooCommerce repository directly or your WooCommerce fork. If you plan to contribute to WooCommerce code base, it is recommended that you clone your fork. If needed, see [this GitHub document on how to create a fork](https://help.github.com/en/articles/fork-a-repo). @@ -51,14 +51,16 @@ In your terminal: ``` $ git clone git@github.com:USER_NAME/woocommerce.git ``` -3. Install dependencies (this includes some functionality such as Gutenberg Blocks and the REST API that are developed as separate projects): - ``` - $ cd woocommerce - $ npm install - $ composer install - ``` -## Generating assets +## Install dependencies and generate assets + +To install WooCommerce dependencies (this includes some functionality such as Gutenberg Blocks and the REST API that are developed as separate projects and Grunt that is used to generated minified versions of the SCSS and JS files): + +``` +$ cd ~/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce +$ npm install +$ composer install +``` The source code found on GitHub does not contain compiled CSS or Javascript. To generate those assets run the following command from the WooCommerce root directory: