Akryum / Akryum/awesomejs.dev

An "Install Package" Button (with companion service)

未关闭
#47 2 条评论 0 个 reaction 已指派 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 摘要。