mix vitex.install.bun_integration (Vitex v0.2.4)
View SourceHandles the special integration with the Elixir bun package.
This is different from system package managers because:
- Bun is managed by Mix (not system-installed)
- The bun executable is auto-downloaded to _build/bun
- It can use Bun workspaces for Phoenix JS dependencies
- Mix tasks handle the bun installation lifecycle
The Elixir bun package is similar to how Phoenix manages esbuild and tailwind, providing a controlled, versioned JavaScript runtime within the Elixir ecosystem.
Summary
Functions
Returns the Bun-specific configuration for various operations.
Returns the command to run for package installation based on whether Bun is being used.
Integrates Bun into the project when --bun flag is specified.
Checks if Bun integration should be performed.
Updates package.json to include Bun workspaces configuration.
Checks if the project is using Bun integration.
Functions
Returns the Bun-specific configuration for various operations.
Returns the command to run for package installation based on whether Bun is being used.
Integrates Bun into the project when --bun flag is specified.
This performs all Bun-specific setup in a coordinated way:
- Adds the bun Mix dependency
- Configures bun version and assets profile
- Sets up Bun-specific mix aliases
- Configures the development watcher to use _build/bun
- Updates package.json to use Bun workspaces
- Adds helpful notice about Bun configuration
Checks if Bun integration should be performed.
Updates package.json to include Bun workspaces configuration.
Checks if the project is using Bun integration.