From 9c4433646daf8c096f846cf0607d60d70dc731c0 Mon Sep 17 00:00:00 2001 From: Charles <168678941+charlesw-salesforce@users.noreply.github.com> Date: Sun, 5 Jul 2026 19:43:32 -0700 Subject: [PATCH] fix(docs): reorder README steps so graphql:schema runs after deploy --- README.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ffd3a34..d21607e 100644 --- a/README.md +++ b/README.md @@ -62,13 +62,11 @@ graph LR sf org create scratch -d -f config/project-scratch-def.json -a recipes ``` -1. Install dependencies, fetch the GraphQL schema, and build React Recipes: +1. Install dependencies and build React Recipes: ```bash cd force-app/main/react-recipes/uiBundles/reactRecipes npm install - npm run graphql:schema - npm run graphql:codegen npm run build cd ../../../../.. ``` @@ -85,6 +83,15 @@ graph LR sf org assign permset -n recipes ``` +1. Fetch the GraphQL schema and run codegen: + + ```bash + cd force-app/main/react-recipes/uiBundles/reactRecipes + npm run graphql:schema + npm run graphql:codegen + cd ../../../../.. + ``` + 1. Import sample data: ```bash @@ -121,13 +128,11 @@ graph LR cd multiframework-recipes ``` -1. Install dependencies, fetch the GraphQL schema, and build React Recipes: +1. Install dependencies and build React Recipes: ```bash cd force-app/main/react-recipes/uiBundles/reactRecipes npm install - npm run graphql:schema - npm run graphql:codegen npm run build cd ../../../../.. ``` @@ -144,6 +149,15 @@ graph LR sf org assign permset -n recipes ``` +1. Fetch the GraphQL schema and run codegen: + + ```bash + cd force-app/main/react-recipes/uiBundles/reactRecipes + npm run graphql:schema + npm run graphql:codegen + cd ../../../../.. + ``` + 1. Import sample data: ```bash