Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-luna

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-luna

基于Echarts的Vue组件依赖关系分析工具

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

vue-luna

一个基于Echats的Vue组件间依赖关系分析工具

Install

全局安装

  npm install vue-luna -g

Usage

 -- cd yourProject
 -- luna

Notice

Support

  • 在组件内通过import引入(加后缀名)
    //header.vue
    <script>
      import A from './components/BB.vue'  
    </script>
    
  • 不加.vue后缀名引入
    //header.vue
    <script>
      import A from './components/BB'  
    </script>
    
  • 在组件内抽出js单文件引入
    //header.vue
    <script src="./recomdule/a.js"></script>
    
    //a.js
    import A from './components/BB.vue'
    

Unsupport

很遗憾Luna暂时不支持 webpack alias 解析模块,因此下面的引入方式Luna是无法识别的:

//无效的组件引入方式
import components from '@/axx,vue'

Pages and Components

该工具如果分析出某个.vue文件不被任何其他组件所引用,那么默认它为页面级组件,如果被其他组件所引用过,那么它被认为是vue组件

ToDo

  • 支持自定义命令参数
  • 更加友好的界面展示
  • 扩展核心功能,支持不加文件名分析 (已完成)
  • 支持动态查找某个组件的被引用关系 (已完成)

FAQs

Package last updated on 07 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc