Update README to provide a better explanation of setting up#56
Update README to provide a better explanation of setting up#56danielbachhuber merged 2 commits intomainfrom
Conversation
.readme-partials/INSTALLATION.md
Outdated
| 2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder. | ||
| 3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder. | ||
|
|
||
| First, clone the GitHub repository: |
There was a problem hiding this comment.
I like the details you've added. I'm wondering if we could restructure it to keep only one list of steps. When I read the current version, after reading the first bullet I open the terminal and start thinking about how to clone all packages from the organization. It's not fully clear if I should perform steps 1-3 and then follow the steps below, or if the steps below are detailed instructions for steps 1-3. If the latter is true, could we compile them in one list that explains what should be done in a given step and include a sample command?
There was a problem hiding this comment.
Fair enough, I consolidated to a single code block with 056411e
.readme-partials/INSTALLATION.md
Outdated
| git clone https://github.com/wp-cli/wp-cli-dev wp-cli-dev | ||
| ``` | ||
|
|
||
| Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine too. |
There was a problem hiding this comment.
Do we want to mention experimental SQLite support here?
There was a problem hiding this comment.
@swissspidy I'm open to it! What language would you suggest?
There was a problem hiding this comment.
Maybe something along these lines:
Alternatively, if you do not have MySQL or MariaDB installed on your computer, you can also run tests using SQLite, which is an alternative database that does not require separate installation. To do so, set the
WP_CLI_TEST_DBTYPEenvironment variable accordingly when running tests. Example:WP_CLI_TEST_DBTYPE=sqlite composer behat
Note: In this case you do not need to runcomposer prepare-testseither.
Needs some pointer to the Behat docs I suppose.
There was a problem hiding this comment.
I'll add these in a moment.
From wp-cli/handbook#470