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

Feature Request: Profile or Environments to e.g. only install some tools in CI #479

Closed
z0rrn opened this issue May 19, 2024 · 3 comments
Closed
Assignees

Comments

@z0rrn
Copy link

z0rrn commented May 19, 2024

I would like to be able to only install some tools in CI/CD. This is equivalent to devDependencies and dependencies in the package.json file but in my proposal it's mich more flexible.

Consider we have the following .prototools file:

tool-a = "4.5.7"
[profile.dev]
tool-b = "1.2.3"
[profile.release]
tool-c = "1.4.6"
[profile.prod]
tool-d = "8.4.5"

Now just running proto use would install every tool specified (this could also only install tool-a). If proto use --profile prod is run only tool-d is installed (this could alson install tool-a and tool-d).

This could be entirely optional in .prototools. The profiles must be prefixed with profile., otherwise there could be confusion between a profile plugins and the plugin URLs.

Thanks, Frederik

@milesj
Copy link
Contributor

milesj commented May 19, 2024

I like this. Seems like an easy enough feature to support.

@milesj
Copy link
Contributor

milesj commented May 28, 2024

I started on this but it seems like it could be solved with env-mode configs? https://moonrepo.dev/docs/proto/config#environment-mode

@z0rrn
Copy link
Author

z0rrn commented May 29, 2024

Yep, totally missed that one. Sorry to waste your time and thanks for the fast answer.

@z0rrn z0rrn closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants