i5ting / imove

INACTIVE: Move your mouse, generate code from flow chart
https://www.yuque.com/imove/docs/hvu0md
MIT License
3.75k stars 343 forks source link

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

Closed SmallStoneSK closed 3 years ago

SmallStoneSK commented 3 years ago

Available Solution

  1. 根据 import 语法,使用正则匹配出当前节点代码中的依赖
  2. 根据例子 npm view lodash --verbose 分析出查询 package 信息的 api 是 https://registry.npm.taobao.org/lodash (淘宝源,也可以切成 npm 的 https://registry.npmjs.org/)
  3. 当自动识别得到的依赖是当前节点没有配置的,则弹出对话框提示是否需要添加
SmallStoneSK commented 3 years ago

resolved: 73173a26184b8fe92be9adf99ef1d925f0659874