devicons / devicons/devicon

[FEATURE REQUEST]: split up devicon.json

Offen
#2,136 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
awaiting triage discussion enhancement
Vorherrschende Sprache
CSS
Sterne
11.8k
Forks
2.4k
Ø Merge
5 T. 9 Std.
Gemergte PRs (30 T.)
4

Beschreibung

### I have searched through the issues and didn't find my problem.

- [X] Confirm

### Description

I had this idea before, and was reminded by the `check-bot` comment in https://github.com/devicons/devicon/pull/2135
I am not sure if this works for the whole build and release process, so i guess this needs more input.

**The Idea:**
Split up the `devicon.json` into snippets for each icon. So instead of having one huge json, split it up into a "one json per icon"
So in the example case of the `teleport` icon, we would have a folder like the following:

![image](https://github.com/devicons/devicon/assets/482423/5b8f5526-4343-4bed-9f71-362f0b5231fd)

So each icon folder also includes a `devicon.json` or `teleport.json` (whatever fits better), including only the part specific for this icon.

When ever the full `devicon.json` is needed for build or publish it could be merged with a tool like `jq` or similar,
by iterating over all icon folders, and therefore automatically produce the alphabetical order we want.

### Context

I think the pro side of this split up is, that the contributors, don't need to have to remember that the alphabetical order is needed.

### Possible Solution

_No response_

### Additional information

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Überprüfe devicon.json und den Kommentar von check-bot zu PR #2135 und untersuche anschließend, wie der Build- und Release-Prozess die Datei verwendet. Ermittle, ob einzelne Icon-JSON-Dateien mit jq oder einem ähnlichen Tool zusammengeführt werden können, wobei die erforderliche alphabetische Reihenfolge erhalten bleibt; abgeschlossen ist die Aufgabe, wenn der Ansatz für die Verwendung beim Build und bei der Veröffentlichung validiert wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
json
Bereich
build-system, release
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.