new-relixir icon indicating copy to clipboard operation
new-relixir copied to clipboard

Ecto and Phoenix should be optional dependencies

Open alexgaribay opened this issue 7 years ago • 0 comments

Currently in the dependency tree, both Ecto and Phoenix are dependencies added regardless if the parent project is using either dependency. Ideally, both dependencies should be marked as optional dependencies and have version enforcement if the parent project includes new-relixir as a dependency. The caveat here would be that code that expects Phoenix or Ecto would need to do Code.ensure_loaded? when calling dependency-specific functions. The alternative would be creating additional packages that focus on Phoenix or Ecto respectively.

alexgaribay avatar Jan 15 '19 21:01 alexgaribay