Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行svrx -p时,会修改项目的package.json,插件会被注入到deps #125

Closed
lighte-chen opened this issue Oct 22, 2019 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lighte-chen
Copy link

Describe the bug
运行svrx -p时,会修改项目的package.json,插件会被注入到deps

To Reproduce
Steps to reproduce the behavior:

  1. 在项目根目录下运行svrx -p eruda
  2. 查看package.json,deps中出现svrx-plugin-eruda

Expected behavior
期望不会修改到package.json,因为就本地开发用

@lighte-chen lighte-chen added the bug Something isn't working label Oct 22, 2019
@xuchaoying
Copy link
Member

Sorry for the bug, will fix it very soon!

@vczhan
Copy link

vczhan commented Oct 28, 2019

很多插件都很常用/通用,希望能增加全局安装的方式

@xuchaoying
Copy link
Member

@vczhan 全局配置其实可以写到/${HOME}/.svrx/config/.svrxrc.js 中,格式和工程中使用配置文件一样

不过插件安装仍然是安装到各个工程目录中的,看下这样能否满足需求?

@vczhan
Copy link

vczhan commented Oct 28, 2019

@xuchaoying 每次使用都要安装,不太方便。

@xuchaoying
Copy link
Member

@vczhan 工程中只会在第一次运行时安装喔, 不会每次使用都安装的。 这样设计也是为了避免插件安装包混乱。

这个 issue 原本反馈的问题已经 fix 掉了, issue 即将关闭,后续欢迎在新的 issue 中讨论全局安装的问题~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants