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

Make it easier to add protected dependency into the project #18

Open
CrochetFeve0251 opened this issue Jun 29, 2024 · 2 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@CrochetFeve0251
Copy link
Collaborator

CrochetFeve0251 commented Jun 29, 2024

To add a dependency to the project today, it needs to be installed in multiple places.

Instead, we should a way to install a protected dependency in one step using cli.

For that we could create a new library for the cli which installs dependencies as development dependency, then registers them as protected inside Strauss and finally launch Composer to install the dependency.

Then that library can be called from a script inside the composer.json file so the user will be able to add a protected dependency in one command.

Another approach we could explore is to add a new parameter into composer so then we can execute the library while still using a Composer command.

@CrochetFeve0251 CrochetFeve0251 added this to the 0.3.0 milestone Jun 30, 2024
@CrochetFeve0251 CrochetFeve0251 added the enhancement New feature or request label Jul 1, 2024
@CrochetFeve0251
Copy link
Collaborator Author

After some reflection on this feature, it looks like reversing the system would be a good idea.

Instead of adding a parameter of a command to protect the library, it would make more sense to protect them by default and add a command to protection them when needed or for dev dependencies.

@CrochetFeve0251
Copy link
Collaborator Author

Looks like it is also possible doing that playing with event and keeping the main interface for the user being composer:

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

1 participant