8000 [Stimulus] Create NPM Package for @symfony/stimulus-bundle to Decouple from PHP Components · Issue #2575 · symfony/ux · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Stimulus] Create NPM Package for @symfony/stimulus-bundle to Decouple from PHP Components #2575
Closed
@alinceDev

Description

@alinceDev

Issue Description:

Currently, certain JavaScript bundles, such as @symfony/stimulus-bundle, are being installed from the vendor package instead of an NPM package. This is evident in the package.json file where the dependency is specified as:

    "@symfony/stimulus-bundle": "file:vendor/symfony/stimulus-bundle/assets",

Problem

This approach creates a tight coupling between the JavaScript and PHP components, making it difficult to manage and install JavaScript dependencies independently. For instance, in a CI environment, this setup requires the installation of PHP components via Composer to install the JavaScript packages, which is not ideal for running tests with Playwright or other JavaScript-focused tasks.

Request

Could you please create an NPM package for @symfony/stimulus-bundle (and potentially other relevant bundles) to allow for independent installation via NPM? This would streamline the setup process, especially in CI environments, and decouple the JavaScript dependencies from the PHP components.

Use Case Example

For example, when setting up a CI pipeline to run Playwright tests, it would be beneficial to install the necessary JavaScript packages directly via NPM without needing to install the PHP components through Composer.

If this issue is already documented and I missed the information, I apologize for the oversight. Thank you for considering this enhancement!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0