@tkskto/vue-component-analyzer
Advanced tools
Comparing version 0.1.0 to 0.1.1
/*! | ||
@tkskto/vue-component-analyzer v0.1.0 | ||
@tkskto/vue-component-analyzer v0.1.1 | ||
https://github.com/tkskto/ | ||
@@ -7,5 +7,5 @@ Released under the MIT License. | ||
class MyCustomEvent { | ||
constructor(type, value = null) { | ||
constructor(type) { | ||
this.type = type; | ||
this.value = value; | ||
this.currentTarget = null; | ||
} | ||
@@ -12,0 +12,0 @@ } |
@@ -6,3 +6,3 @@ /** | ||
/*! | ||
@tkskto/vue-component-analyzer v0.1.0 | ||
@tkskto/vue-component-analyzer v0.1.1 | ||
https://github.com/tkskto/ | ||
@@ -9,0 +9,0 @@ Released under the MIT License. |
/*! | ||
@tkskto/vue-component-analyzer v0.1.0 | ||
@tkskto/vue-component-analyzer v0.1.1 | ||
https://github.com/tkskto/ | ||
@@ -4,0 +4,0 @@ Released under the MIT License. |
/*! | ||
@tkskto/vue-component-analyzer v0.1.0 | ||
@tkskto/vue-component-analyzer v0.1.1 | ||
https://github.com/tkskto/ | ||
@@ -54,3 +54,3 @@ Released under the MIT License. | ||
if (_filename.startsWith('../')) { | ||
filename = _filename.replace(/\.\.\//ug, ''); | ||
filename = path_1.resolve(path_1.dirname(_currentFileName), _filename); | ||
} | ||
@@ -57,0 +57,0 @@ else if (_filename.startsWith('./')) { |
{ | ||
"name": "@tkskto/vue-component-analyzer", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Analyze dependency tree for Vue.js SFC (Single File Component)", | ||
@@ -20,3 +20,9 @@ "main": "dist/index.js", | ||
}, | ||
"keywords": [], | ||
"keywords": [ | ||
"Vue.js", | ||
"Vue", | ||
"component", | ||
"analyze", | ||
"tree" | ||
], | ||
"author": { | ||
@@ -59,5 +65,5 @@ "name": "tkskto", | ||
"@types/ws": "7.2.7", | ||
"@typescript-eslint/eslint-plugin": "4.3.0", | ||
"@typescript-eslint/parser": "4.3.0", | ||
"eslint": "7.10.0", | ||
"@typescript-eslint/eslint-plugin": "4.4.0", | ||
"@typescript-eslint/parser": "4.4.0", | ||
"eslint": "7.11.0", | ||
"husky": "4.3.0", | ||
@@ -64,0 +70,0 @@ "lint-staged": "10.4.0", |
# vue-component-analyzer | ||
This tool can Analyze dependency tree for Vue.js SFC (Single File Component) | ||
This tool can Analyze dependency tree for Vue.js SFC (Single File Component). | ||
![](https://github.com/tkskto/vue-component-analyzer/blob/images/images/screenshot.png?raw=true) | ||
Also, you can see Props of Component. | ||
![](https://github.com/tkskto/vue-component-analyzer/blob/images/images/screenshot2.png?raw=true) | ||
## installation and usage | ||
@@ -31,5 +33,6 @@ | ||
- `--dir` : target directory. default is `src`. | ||
- `--dir` : analyze target directory. default is `src`. | ||
- `-f` or `--format` : report type. choose one from [browser | json | both]. default is `browser'. | ||
- `-o` or `--out` : output directory for JSON file. | ||
- `-o` or `--out` : output directory. JSON file will output here. | ||
- `-p` or `--port` : select a port number for the local server. | ||
@@ -36,0 +39,0 @@ ## License |
23186
43