Skip to content

Commit 5a3f546

Browse files
committed
update_to_5.0.md: Rework recipes
Remove Stimulus bootstrap w/ Webpack Encore recipe Write all edition recipes
1 parent 9b895fd commit 5a3f546

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

docs/update_and_migration/from_4.6/update_to_5.0.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,6 @@ rm config/routes/annotations.yaml
9191
rm config/routes.yaml
9292
```
9393

94-
### Remove Stimulus bootstrap
95-
96-
Edit `assets/app.js` and remove the following lines:
97-
98-
```
99-
// start the Stimulus application
100-
import './bootstrap';
101-
```
102-
103-
Delete the bootstrap file:
104-
105-
```
106-
rm assets/bootstrap.js
107-
```
108-
10994
### Remove GraphQL schema
11095

11196
4.6 GraphQL isn't compatible with 5.0 so delete it.
@@ -129,11 +114,13 @@ The process example below considers [`symfony/debug-pack`](https://symfony.com/p
129114
```bash
130115
TODO
131116
```
117+
132118
=== "[[= product_name_exp =]]"
133119

134120
```bash
135121
TODO
136122
```
123+
137124
=== "[[= product_name_com =]]"
138125

139126
```bash
@@ -199,15 +186,37 @@ you can remove it:
199186
ddev composer config --unset extra.runtime.error_handler
200187
```
201188

202-
#### Recipes
189+
#### Remove Stimulus bootstrap
203190

204-
```bash
205-
# Force recipes reset
206-
rm symfony.lock
207-
# Run recipes
208-
composer recipes:install ibexa/commerce --force --yes -v
191+
To help moving from Symfony's Webpack Encore bundle 1.x to 2.x,
192+
delete the Stimulus bootstrap file
193+
and reset Webpack Encore recipe:
194+
195+
```
196+
rm assets/bootstrap.js
197+
composer recipes:install symfony/webpack-encore-bundle --reset --force --yes
209198
```
210199

200+
#### Apply [[= product_name =]] recipe
201+
202+
=== "[[= product_name_headless =]]"
203+
204+
```bash
205+
composer recipes:install ibexa/headless --reset --force --yes
206+
```
207+
208+
=== "[[= product_name_exp =]]"
209+
210+
```bash
211+
composer recipes:install ibexa/experience --reset --force --yes
212+
```
213+
214+
=== "[[= product_name_com =]]"
215+
216+
```bash
217+
composer recipes:install ibexa/commerce --reset --force --yes
218+
```
219+
211220
#### Sort commands
212221

213222
Recipe appends a command to `composer.json`'s `auto-scripts`.

0 commit comments

Comments
 (0)