Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LiveComponent] Separation of concerns #1817

Open
Martin1982 opened this issue May 1, 2024 · 1 comment
Open

[LiveComponent] Separation of concerns #1817

Martin1982 opened this issue May 1, 2024 · 1 comment
Labels
LiveComponent question Further information is requested StimulusBundle

Comments

@Martin1982
Copy link

After being introduced to the live-components there is one thing that struck me. When installing the package I have an entry in my package.json containing;

"@symfony/ux-live-component": "file:vendor/symfony/ux-live-component/assets",

Now when running my builds I need both Yarn and Composer on my front-end containers which increases the software dependencies and build times. It also requires more maintenance to keep this extra package version in line.
I couldn't find this package on npmjs.com, which made me wonder. Am I using this wrong? Is this as designed? Or could this be improved?

@smnandre
Copy link
Collaborator

smnandre commented May 1, 2024

This is more a "StimulusBundle + Webpack" thing (i mean it's the case for all the UX packages) .. except if you use AssetMapper :)

More information about the process here: https://symfony.com/bundles/StimulusBundle/current/index.html#how-are-the-stimulus-controllers-loaded

You will probably find some ideas to do it manually (but you will need composer install at one time to fetch the assets)

@smnandre smnandre added question Further information is requested StimulusBundle labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LiveComponent question Further information is requested StimulusBundle
Projects
None yet
Development

No branches or pull requests

3 participants