Skip to content

Split up very large JSON files #26604

@caugner

Description

@caugner

What would you like to see added to BCD?

Split up large files.

For example: api/Element.json currently has 11,182 lines. Splitting it up would add 212 files under api/Element/ and reduce api/Element.json itself to its own __compat object:

{
  "api": {
    "Element": {
      "__compat": {
        // ...
      }
  }
}

How impactful do you think this enhancement will be?

Smaller files should make both edits and reviews easier.

Do you have anything more you want to share?

Run git ls-files '*.json' | xargs wc -l | sort -n to identify the largest files in terms of line count.

Existing work:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNice to have features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions