View Source Igniter.Project.Deps (igniter v0.3.63)

Codemods and utilities for managing dependencies declared in mix.exs

Summary

Functions

Adds a dependency to the mix.exs file.

Removes a dependency from mix.exs

Sets a dependency option for an existing dependency

Functions

Link to this function

add_dep(igniter, dep, opts \\ [])

View Source

Adds a dependency to the mix.exs file.

Options

  • :yes? - Automatically answer yes to any prompts.
  • :append? - Append to the dependency list instead of prepending.
  • :error? - Returns an error instead of a notice on failure.
Link to this function

add_dependency(igniter, name, version, opts \\ [])

View Source
This function is deprecated. Use `add_dep/2` or `add_dep/3` instead..
Link to this function

get_dependency_declaration(igniter, name)

View Source
Link to this function

remove_dep(igniter, name)

View Source

Removes a dependency from mix.exs

Link to this function

set_dep_option(igniter, name, key, quoted)

View Source
@spec set_dep_option(Igniter.t(), atom(), atom(), quoted :: term()) :: Igniter.t()

Sets a dependency option for an existing dependency