Akryum / Akryum/awesomejs.dev

An "Install Package" Button (with companion service)

オープン
#47 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Vue
スター
207
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

説明

**Is your feature request related to a problem? Please describe.**
I think my workflow could be faster if I had a button that would let me install the listed package when I'm on the UI. And perhaps even provide indication if the package is already installed (locally or globally)

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
In order to "npm install" packages, access is needed to the client's filesystem. So, most likely a companion service (NodeJS) would need to be running listening for the "addPackage" requests. So, an "Add Package" button would only appear if that service is running.

Clicking the "Add Package" button would prompt if the user wants to install globally or locally and would either run `npm i [package-name]` or `npm i -g [package-name]`. "Add Package" would also just need to know/remember the user's project directory for installing locally.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

I mostly use the command line, and this is pretty fast for me. However, I think having the control on the UI would help me work faster. Plus, if I have a history of packages I've installed in the past (say, some from project A, others for project B), it may be useful if I could refer back to that list. While I know I could just use my package.json files, it can turn out to be 10-20 package.json files I look through.

**Additional context**
Add any other context or screenshots about the feature request here.

Suggested screenshot
![installPackage](https://user-images.githubusercontent.com/5906351/80833093-bc663880-8ba2-11ea-86ea-183525137691.png)

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

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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