Commit 4f090de
committed
fix(examples): Ensure WordPress and frontend start concurrently
Updated example:start scripts in both toolbar demos to use concurrently
properly. WordPress and frontend now start together using concurrently,
with a 5 second delay on frontend to ensure WordPress completes startup.
Changes:
- Separated wp-env setup (npm install) into wp:ensure script
- Modified wp:start to only run wp-env start (no blocking npm install)
- Used concurrently to run both services in parallel
- Added sleep 5 before frontend start to allow wp-env initialization1 parent 481c20f commit 4f090de
File tree
2 files changed
+6
-4
lines changed- examples
- next/toolbar-demo
- vanilla/toolbar-demo
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments