Metafield theme-check

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

メンテナーはふだん 2 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
cli, tooling

調査の方向性

まず、リンクされている theme-tools の issue #502 と、既存の theme-check および CLI のパスを確認します。テーマに対して要求されているメタフィールドの検証を、theme app extensions 用のアプリ固有の定義と比較し、CLI と Theme Access に関して指摘されている違いも確認します。theme-check と CLI が定義の欠落について警告し、Dawn と Horizon に必要な lint 無視設定がある状態を完了とします。

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

説明

enhancement

Is your feature request related to a problem? Please describe.

Follows up https://github.com/Shopify/theme-tools/issues/502
We need to verify if metafields being used in the code are valid. If the metafield does not exist, you should see a warning when running shopify theme check

Describe the solution you'd like

For themes:

  • running shopify theme check should verify if the metafield exists on your shop
  • If you don't have the metafield, you should get a warning message

For theme app extensions:

Tasks

  • Update theme-check in theme-tools to error out when metafield definitions dont exist
  • Add lint ignore rules in Dawn + Horizon where we use metafields that don't exist in any shops by default
  • Update CLI so there is a warning when running theme check and metafield isnt defined

NOTE: There are a few differences when you pull metafield definitions from CLI or from Theme Access App via CLI

主要言語
TypeScript
スター
245
フォーク
108
平均マージ
2日 8時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

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

Shopify/theme-tools のほかの issue

Shopify/theme-tools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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