@@ -33,19 +33,30 @@ Emulsify 7.x is a breaking release. Plan the upgrade as a theme-platform change,
3333- Frontend workflow references should move from Webpack-based build workflow commands and docs to the Vite-based build workflow shipped in 7.x.
3434- ` whisk ` remains a starter source only. Do not enable it as a runtime parent theme.
3535
36- ## Twig Story Migration Audit
36+ ## Project Audit
3737
38- Generated themes include an audit command for reviewing older Twig stories that
39- should move to Emulsify Core's preferred ` renderTwig() ` helper:
38+ Generated themes include an audit command for reviewing common frontend upgrade
39+ items:
40+
41+ ``` bash
42+ npm run audit
43+ ```
44+
45+ The command reports Storybook discovery issues, unresolved Twig ` include() ` or
46+ ` source() ` references, Webpack-era patterns, direct imports of Emulsify Core
47+ internals, platform assumptions, source-root issues, large Twig Storybook roots,
48+ and older Twig stories that should move to Emulsify Core's preferred
49+ ` renderTwig() ` helper.
50+
51+ For only the Twig story migration report, run:
4052
4153``` bash
4254npm run audit:twig-stories
4355```
4456
45- The command prints a report of likely legacy Storybook files and links to the
46- Emulsify Core Storybook migration documentation. Existing Twig stories that
47- return HTML strings can continue rendering during the upgrade, but actively
48- maintained stories should be migrated to ` renderTwig() ` as they are touched.
57+ Existing Twig stories that return HTML strings can continue rendering during the
58+ upgrade, but actively maintained stories should be migrated to ` renderTwig() ` as
59+ they are touched.
4960
5061## Theme Architecture Changes
5162
0 commit comments