fix: register ViteBundle, add config, share vendor volume with node, add vite-plugin-symfony

- Add PentatrionViteBundle to bundles.php (Flex recipe didn't auto-register)
- Create pentatrion_vite.yaml config
- Share vendor named volume with node container (needed for file: npm deps)
- Add vite-plugin-symfony to package.json devDependencies

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere
2026-03-28 13:26:47 +01:00
parent deb826401d
commit d590120306
5 changed files with 4413 additions and 1 deletions

View File

@@ -14,4 +14,5 @@ return [
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Symfony\UX\React\ReactBundle::class => ['all' => true],
Pentatrion\ViteBundle\PentatrionViteBundle::class => ['all' => true],
];

View File

@@ -0,0 +1,5 @@
pentatrion_vite:
default_build: app
builds:
app:
build_directory: build

View File

@@ -23,9 +23,12 @@ services:
target: dev
volumes:
- .:/app
- vendor:/app/vendor
- node_modules:/app/node_modules
ports:
- "5173:5173"
depends_on:
- app
volumes:
vendor:

4402
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -16,6 +16,7 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3",
"vite": "^6.0"
"vite": "^6.0",
"vite-plugin-symfony": "^8.0"
}
}