Attaching references after the build
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- data
調査の方向性
ファイル、テスト、エントリポイントは指定されていません。まず、ビルド完了処理と参照処理のパスを見つけ、既存の transformer の動作を、要求されているビルド後のフィールドキャッシュおよび Tag[] のハイドレーションと比較してください。カスタム transformer なしで両方の機能が連携して動作し、tags と posts の例に対するカバレッジがあれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The simple version of this is that I have two document types and I want to cache some static field on a document after the build has completed.
For example, let's say I have tags and posts, and I want a tag object to have a postCount attribute that caches the number of posts to which the tag was applied.
The more complex example is to be able to "hydrate" references without needing to write my own transformer function.
In the example above, posts would have a tags field reference. But I'd love if what were returned was of type Tag[] rather than string[].
Having both together would be ideal.
- 主要言語
- TypeScript
- スター
- 3.5k
- フォーク
- 192
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
contentlayerdev/contentlayer のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
contentlayerdev/contentlayer#506 · コメント 84 件 · リアクション 47 件 ·
-
Poor/broken monorepo DX: can't specify .contentlayer/ output path, no docs for custom config path オープンhelp wanted meta: never-stale needs-research
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
contentlayerdev/contentlayer#464 · コメント 4 件 · リアクション 9 件 ·
-
State of the project オープンmeta: never-stale
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
contentlayerdev/contentlayer#429 · コメント 49 件 · リアクション 83 件 ·
-
meta: never-stale topic: markdown/mdx
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
contentlayerdev/contentlayer#421 · リアクション 4 件 ·
-
Derived documents オープンneeds-research
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
contentlayerdev/contentlayer#414 · リアクション 1 件 ·
contentlayerdev/contentlayer の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ontola/atomic-server#1625 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
melgarafael/DeskcommCRM#1451 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
bug via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bot:ai-assisted component:compact-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
midnightntwrk/midnight-sdk#403 ·