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

Add dependency & dependency injection #81

Open
1 task done
NaysKutzu opened this issue Jan 18, 2025 · 3 comments
Open
1 task done

Add dependency & dependency injection #81

NaysKutzu opened this issue Jan 18, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@NaysKutzu
Copy link

Scope

Extension development

Explanation

Just allow us to have dam dependency's or other things:

  1. Allow us to specify in the config.yml what yarn packages shall be installed
  2. Allow us to specify in the config.yml what composer packages hall be installed
  3. Allow us to make libs for blueprint plugins so we can have multiple extensions target other extensions

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
@NaysKutzu NaysKutzu added the enhancement New feature or request label Jan 18, 2025
@prplwtf
Copy link
Member

prplwtf commented Jan 18, 2025

  • Dependencies have to be kept track of. Multiple extensions can have the same dependency, uninstalling one extension shouldn't uninstall the other extension's dependency as well.
  • Dependency versions seems like something blocking this from being implemented at the moment. How would we handle an extension using v1.0 of a dependency if another extension uses v0.7.

@NaysKutzu
Copy link
Author

  1. You can use yarn resolutions in the root project to enforce a specific version for conflicting dependencies, if necessary.

  2. Use Composer's "virtual packages" or aliasing to resolve conflicts.

@prplwtf
Copy link
Member

prplwtf commented Jan 19, 2025

This still requires Blueprint to keep track of dependencies, which is currently blocking this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants