forked from juanallo/vscode-dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
180 lines (180 loc) · 6.31 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"name": "vscode-dependency-cruiser",
"displayName": "Dependency Cruiser Extension",
"description": "Visual Studio Code Extension to build dependency graphs using dependency-cruiser. Visualize module dependencies from any file",
"version": "0.1.0",
"publisher": "juanallo",
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.43.0"
},
"categories": [
"Other"
],
"keywords": [
"Dependency Graph",
"Dependency Analysis",
"Javascript",
"Typescript"
],
"icon": "docs/logo.png",
"galleryBanner": {
"color": "#4458be",
"theme": "dark"
},
"bugs": {
"url": "https://github.com/juanallo/vscode-dependency-cruiser/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/juanallo/vscode-dependency-cruiser.git"
},
"homepage": "https://github.com/juanallo/vscode-dependency-cruiser/blob/master/README.md",
"activationEvents": [
"onCommand:extension.dependencyAnalysis"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "extension.dependencyAnalysis",
"title": "View Dependencies"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.dependencyAnalysis",
"title": "View Dependencies"
}
]
},
"configuration": {
"title": "dependencyCruiser",
"properties": {
"dependencyCruiser.exclude": {
"type": "string",
"scope": "resource",
"default": "node_modules/",
"description": "Define a regex to exclude dependencies for being listed"
},
"dependencyCruiser.maxDepth": {
"type": "number",
"scope": "resource",
"default": 3,
"minimum": 0,
"maximum": 99,
"description": "the maximum depth to cruise; 0 <= n <= 99 (default: 0, which means 'infinite depth')"
},
"dependencyCruiser.layout": {
"type": "string",
"scope": "resource",
"default": "directed",
"enum": [
"directed",
"undirected",
"undirectedCompressed",
"clustered",
"circular",
"radial",
"treemap"
],
"description": "Layout for the diagram"
},
"dependencyCruiser.prefix": {
"type": "string",
"scope": "resource",
"description": "Prefix to add to each node URL. For example, you can use this to alllow opening the file in github"
},
"dependencyCruiser.moduleSystems": {
"type": "array",
"scope": "resource",
"default": [
"amd",
"cjs",
"es6"
],
"description": "Define the module systems to be used. Supported: ['amd', 'cjs', 'es6', 'tsd']"
},
"dependencyCruiser.tsConfig": {
"type": "string",
"scope": "resource",
"default": "tsconfig.json",
"description": "Specify the path for the typescript configuration file"
},
"dependencyCruiser.webpackConfig": {
"type": "object",
"scope": "resource",
"default": "webpack.config.js",
"description": "Specify the path for the webpack configuration file"
},
"dependencyCruiser.outputType": {
"type": "string",
"scope": "resource",
"default": "node",
"enum": [
"top",
"folder",
"node"
],
"description": "The output type will specify the tree be generated."
},
"dependencyCruiser.theme": {
"type": "string",
"scope": "resource",
"default": "basic",
"enum": [
"basic",
"simple",
"blueprint",
"flat",
"custom"
],
"description": "The output type will specify the tree be generated."
},
"dependencyCruiser.customTheme": {
"type": "object",
"scope": "resource",
"description": "json for own graph style"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "parcel build -t node --no-source-maps --bundle-node-modules node_modules/dependency-cruiser/src/main/index.js --out-file dependencyCruiser.js",
"lint": "eslint --cache --fix . && prettier --write .",
"pretest": "npm run lint && npm run build",
"test": "node ./test/runTest.js",
"coverage": "nyc npm run test"
},
"dependencies": {
"dependency-cruiser": "^8.1.0",
"viz.js": "^2.1.2"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.1",
"@types/node": "^12.11.7",
"@types/vscode": "^1.43.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"husky": "^4.2.3",
"lint-staged": "^10.0.10",
"mocha": "^7.0.1",
"nyc": "^15.0.1",
"parcel-bundler": "^1.12.4",
"prettier": "2.0.2",
"typescript": "^3.7.5",
"vscode-test": "^1.3.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,css,md, json}": "prettier --write"
}
}