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: Designate Dev-Dependencies in devbox.json #2067

Open
ibrhmkoz opened this issue May 20, 2024 · 0 comments
Open

Feature Request: Designate Dev-Dependencies in devbox.json #2067

ibrhmkoz opened this issue May 20, 2024 · 0 comments
Labels
feature New feature or request triage Issue needs triage

Comments

@ibrhmkoz
Copy link

What problem are you trying to solve?

I'm using Devbox to provision development environments, and I've noticed a potential enhancement. It would be beneficial if devbox.json allowed us to designate which dependencies are development dependencies, similar to how npm handles devDependencies. This feature would enable the installation of post-build dependencies and ensure parity between the development and runtime environments using the Devbox package manager.

What solution would you like?

To avoid breaking changes, new clients can specify the distinction between development and runtime dependencies as follows, while keeping the old configuration intact:

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.5/.schema/devbox.schema.json",
  "devPackages": [
    "go@latest",
    "sqlc@latest",
    "atlas@latest",
    "git-crypt@latest",
    "protobuf@latest",
    "protoc-gen-go@latest",
    "protoc-gen-go-grpc@latest",
    "docker-compose@latest",
    "git@latest",
    "docker@latest",
    "gnumake@latest"
  ],
  "runtimePackages": [
    "python@latest"
  ]
}

New CLI Commands:

devbox install runtime: Installs only runtime dependencies.
devbox install: Installs all dependencies (both development and runtime).

Alternatives you've considered

No response

@ibrhmkoz ibrhmkoz added feature New feature or request triage Issue needs triage labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage Issue needs triage
Development

No branches or pull requests

1 participant