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

refactor: Split monolithic language files into dirs with component files #2564

Merged
merged 89 commits into from
May 18, 2024

Conversation

inferrinizzard
Copy link
Contributor

@inferrinizzard inferrinizzard commented Apr 13, 2024

Description

Splits up singular files for each language into dirs with the following structure:

  • language.ts for options and the exported _TargetLanguage class
  • _Renderer.ts for the various renderer(s) that perform the main logic
  • utils.ts for help functions, ie. naming
  • constants.ts for large chunks of static strings

Motivation and Context

This change helps to break down these previously huge files into smaller chunks that are easier to isolate and grok while working on a particular language.
Additionally help to improve performance for linting and formatting threads.

C++ and CJSON are still very large so could use additional refactor work there

Previous Behaviour / Output

Before:
image

New Behaviour / Output

After:
image

How Has This Been Tested?

Builds and tests still pass 👍

Screenshots (if appropriate):

@dvdsgl dvdsgl merged commit be6a937 into glideapps:master May 18, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants