mix mob.adopt.deps (mob_dev v0.6.13)

Copy Markdown View Source

Adds Mob's two deps to the host project's mix.exs:

  • {:mob, "~> 0.7"} — the framework, used at runtime.
  • {:mob_dev, "~> 0.6", only: :dev, runtime: false} — build/deploy Mix tasks. Dev-only.

Options

  • --local — write path: deps instead of Hex version constraints, resolved from MOB_DIR / MOB_DEV_DIR env vars (falling back to ./mob / ../mob). For Mob framework contributors.

Other orchestrator flags accepted but inert.

Idempotency

Patching is done via MobDev.Adopt.Patcher.inject_deps/3 (the same stdlib-AST walk mix mob.new --liveview uses), which short-circuits if :mob is already declared.

Typically called by mix mob.adopt, not directly.