Azure / Azure/static-web-apps-cli

Investigate using pre-installed func core tools rather than downloading to user home dir

オープン
#925 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
scope: core type: enhancement
主要言語
TypeScript
スター
668
フォーク
156
PR マージ指標
30日以内にマージされた PR はありません

説明

**Is your feature request related to a problem? Please describe.**
Downloading the func core tools binary is bloating user disk space under $HOME/.swa/core-tools/$FUNC_VERSION

**Describe the solution you'd like**
In the scenario where it is already installed, we should check if core tools is already available on the user's machine and use that rather than downloading to the home directory

**Describe alternatives you've considered**
We can also consider using the minified releases of core tools which will take up less space in the user's home dir

**Additional context**
Changes should be made in this file: https://github.com/Azure/static-web-apps-cli/blob/main/src/core/func-core-tools.ts

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

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

調査の方向性

src/core/func-core-tools.ts から始めて、CLI が func core tools バイナリをどのように見つけ、ダウンロードし、呼び出しているかを追跡します。既存のインストールパスを確認し、すでに利用可能なインストールがある場合の動作を定義するとともに、minified-release の代替案も検討します。$HOME/.swa/core-tools/$FUNC_VERSION に別のコピーをダウンロードせず、利用可能な事前インストール済みバイナリが使用されれば完了です。

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

評価

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

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

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