From 2b2e863c84225e8f318e9b492e9faa7d0ca8c7b5 Mon Sep 17 00:00:00 2001 From: mlaetitia <30905719+mlaetitia@users.noreply.github.com> Date: Sat, 23 Mar 2024 15:45:01 -0500 Subject: [PATCH] Small fixes to the readme instructions to specify the code must be run on the plugins folder --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 7f38b2b..595534e 100644 --- a/readme.md +++ b/readme.md @@ -10,9 +10,9 @@ Your plugin must have an entrypoint with the same name as the folder, i.e. `hell ## Creating a new block -You can add a new block to the monorepo by running the following steps in any folder: +You can add a new block to the monorepo by running the following steps. Make sure you're starting from the `wp-content/plugins` folder: -``` +``` bash git clone --no-checkout --sparse https://github.com/a8cteam51/special-projects-blocks-monorepo/ cd special-projects-blocks-monorepo npx @wordpress/create-block @@ -37,7 +37,7 @@ From here, you can start editing your block. Start by downloading the block's zip file on your plugin folder -``` +``` bash git clone --no-checkout --sparse https://github.com/a8cteam51/special-projects-blocks-monorepo/ cd special-projects-blocks-monorepo git sparse-checkout init --cone