Dev super command: Extract core logic to flowkit package
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
まず project.go と files.go の flow dev ロジックを読み、次に flowkit リポジトリの DeployProject および internal/project パッケージと比較します。どのコア動作を再利用可能な flowkit パッケージに移せるか、また js/wasm に ReaderWriter や FileWatcher などのインターフェースが必要かを判断します。外部パッケージが flow-cli/internal に依存せずに抽出したロジックを再利用できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Issue To Be Solved
flow dev command logic (used by flow super command group) can't be (re)used by external packages at the moment, as it lives in the flow-cli/internal package.
Suggest A Solution
More core logic (from project.go and files.go) to a non-internal package (preferably to flowkit repo, as that's where other such logic already lives), so that other packages or projects can reuse it if needed (useful mostly for other devtools).
This is similar to how DeployProject function lives in flowkit, instead of internal/project package.
Context
This would be useful for Flowser, as we want to build a browser-based Flow playground, which would include an emulator and (a subset of) Flow CLI all running within the browser.
We also want to make setting up and running a project at least as easy as when doing local development in the shell. For that, it may be good to reuse the logic from flow dev, to be consistent with how the project development flow works locally.
To be fair, I'm not sure it's worth refactoring and extracting this, as flow dev logic depends on some functions/dependencies that won't work as desired js/wasm environment (e.g. os.Stat which doesn't do anything on the web) + it's not necessarily that complicated to re-implement at the moment (although I think we could all benefit from using and improving a single such library function). But that could be solved by depending on an interface (e.g. ReaderWriter and FileWatcher) instead on the concrete implementation.
For more context, see our grant proposal: https://github.com/onflow/developer-grants/issues/260
- 主要言語
- Go
- スター
- 209
- フォーク
- 88
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
onflow/flow-cli のほかの issue
-
Simplify MCP contract sorting with slices helpers対応中かも @luangucun が 41 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
`flow cadence lint` lints imports対応中かも @holyfuchs が 180 日前に担当しました。 オープンBug Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
flow test prints unreadable output対応中かも @holyfuchs が 178 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
Feature
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
onflow/flow-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
agent-review-finding bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jordansmall/spindrift#5281 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
github/github-mcp-server#3489 ·
メンテナーはふだん 4 日以内に返信
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
dependabot/dependabot-core#16547 ·
メンテナーはふだん 1 日以内に返信
-
Docs/examples still create key ranges in ascending order, which fails in 3.1.0 (follow-up to #1754)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pg-sharding/spqr#3083 ·
メンテナーはふだん 1 日以内に返信