eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Prettier Integration
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 201
- Forks
- 76
- Ø Merge
- 4 T. 7 Std.
- Gemergte PRs (30 T.)
- 21
Beschreibung
It'd be nice to integrate Prettier into Wild Web Developer to enable features such as CSS formatting.
Originally, I wanted to propose having a Node.JS project builder, which would use the embedded Node.JS instance from Wild Web Developer to allow running Node applications as a build action. This would allow users to create a package.json for their workspace, add prettier as a dev-dependency and run prettier to format on save/automatic build.
However there are issues with this approach:
- A user might want to format CSS and not use a package.json
- Most users who would want to run Node tools such as prettier will most likely have Node on their system. Using the internal/embedded Node from Wild Web Developer might cause differences/issues, and there is a maintance cost for adding options (such as use internal/external node for Node.JS project builder)
So instead, it might be desirable to integrate Prettier directly into Wild Web Developer, and have it run on format.
Prettier is configurable with a configuration file, which will give users nice options such as ignoring certain files when formatting, using single/double quotes, etc.
Prettier is already being used in Spectrum Theme as a project build action.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit der Prüfung der vorgeschlagenen package.json sowie der Einstiegspunkte für format-on-save oder automatische Builds; das Issue nennt keine spezifischen Repository-Dateien oder Tests. Lesen Sie anschließend die Konfigurations- und Optionsdokumentation von Prettier und legen Sie fest, wie die direkte Integration die Formatierung ausführen und die Projektkonfiguration berücksichtigen soll, bevor Sie sie implementieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100