Skip to content

Refactoring core.ts #826

Description

@BassemHalim

Hi,

While working on another PR I noticed that core.ts was extremely long and it was a little hard to figure out how to implement some changes so I am planning on refactoring that code into multiple modules to make it more maintainable.
For example, core.ts has 98 functions

$ grep -c "= () =>" src/livecodes/core.ts
98

So I am thinking we could extract some modules from core.ts like a ConfigManager, EditorManager, StorageManger, etc. without changing the functions and then later we can refactor the long functions.

This might be too much for a single PR so maybe break the PRs into something like extracting ConfigManger from core.ts, extracting x etc.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions