eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Prettier Integration
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 201
- Fork
- 76
- Merge medio
- 4g 7h
- PR unite (30g)
- 21
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando il package.json proposto e i punti di ingresso per format-on-save o per la compilazione automatica; l’issue non indica file o test specifici del repository. Leggi la documentazione sulla configurazione e sulle opzioni di Prettier, quindi definisci come l’integrazione diretta debba eseguire la formattazione e rispettare la configurazione del progetto prima di implementarla.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Tranquilla
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100