Skip to content

Refactor | Divide the code into functions #289

@MatiasOlivera

Description

@MatiasOlivera

Is your feature request related to a problem?
I was reading the source code and I think is a little difficult to follow for newcomers because it follows an imperative way instead of a declarative approach. The index.js file has 500 lines of code, it could be more manageable if it will be smaller.

Describe the solution you'd like

  • Move the code into different functions
  • Avoid changing the options object directly
  • Move related functions to new files (maybe)
  • Move plugins to its own directory (maybe)

It will be necessary making several pull requests to make it more easily to review and discuss the changes.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions