eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

Prettier Integration

オープン
#465 コメント 9 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
Java
スター
201
フォーク
76
平均マージ
4日 7時間
マージ済み PR(30日)
21

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提案されている package.json と、format-on-save または automatic-build のエントリーポイントを確認してください。この issue では、特定のリポジトリのファイルやテストは指定されていません。Prettier の configuration および options のドキュメントを読み、その後、直接統合でフォーマットを実行し、プロジェクト設定を尊重する方法を定義してから実装してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。