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

代码保存时自动识别出当前节点的依赖,并尝试获取版本号 #43

Closed
SmallStoneSK opened this issue Jan 6, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@SmallStoneSK
Copy link
Collaborator

Available Solution

  1. 根据 import 语法,使用正则匹配出当前节点代码中的依赖
  2. 根据例子 npm view lodash --verbose 分析出查询 package 信息的 api 是 https://registry.npm.taobao.org/lodash (淘宝源,也可以切成 npm 的 https://registry.npmjs.org/)
  3. 当自动识别得到的依赖是当前节点没有配置的,则弹出对话框提示是否需要添加
@SmallStoneSK SmallStoneSK added the enhancement New feature or request label Jan 6, 2021
@SmallStoneSK SmallStoneSK self-assigned this Jan 6, 2021
@SmallStoneSK
Copy link
Collaborator Author

resolved: 73173a2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant