This tool can Analyze dependency tree for Vue.js SFC (Single File Component). You can see GitHub Pages for a demo.
Also, you can see Props of Component.
or you can see simple text pattern.
When you try to change the behavior of components, it is hard to know where the component is used.
When you join a new big project using Vue.js, it is hard to understand dependencies.
You can install vue-component-analyzer using npm:
npm install @tkskto/vue-component-analyzer --save-dev
Then put command on npm scripts.
"scripts": {
"vca": "vca --dir pages"
}
Or you can use npm exec(after npm install):
npm exec vca -- --dir .
--dir
: analyze target directory. default issrc
.node_modules
will be ignored by default.--silent
: running without almost logs.-f
or--format
: report type. choose one from [browser | json | both]. default isbrowser
.-o
or--out
: output directory. JSON file will output here.-p
or--port
: select a port number for the local server.
MIT License.