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

Options for ignore files when moving and for configuring module locations #29

Open
zachdaniel opened this issue Jul 3, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@zachdaniel
Copy link
Contributor

For example:

# This is a configuration file for igniter.
# For option documentation, see hexdocs.pm/igniter/Igniter.Project.IgniterConfig.html
# To keep it up to date, use `mix igniter.setup`

[
  module_location: :outside_matching_folder,
  dont_move_files: [
    ~r/file_paths/,
    "lib/this_file.ex"
  ],
  module_names: %{
    ~r/MyAppWeb\..*Controller/ => "lib/my_app_web/controllers"
    ~r/MyAppWeb\..*Live/ => "lib/my_app_web/live"
    ~r/MyAppWeb\..*Views/ => "lib/my_app_web/views",
    "This.Specific.Module" => "lib/this_place"
  }
]
@zachdaniel zachdaniel added the enhancement New feature or request label Jul 3, 2024
@zachdaniel
Copy link
Contributor Author

We've done everything but the module_names feature, which actually needs to be a bit more complex because in that instance the _controller.ex is stripped off of the end. Will need to figure out how to model those conventions, otherwise folks will need to add lots of dont_move_files configurations.

@zachdaniel zachdaniel added the good first issue Good for newcomers label Jul 15, 2024
@zachdaniel
Copy link
Contributor Author

I think module_names will likely need to be regexes as keys and functions as values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant