forked from sverweij/dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
245 lines (245 loc) · 11.3 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"name": "dependency-cruiser",
"version": "9.0.0",
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
"keywords": [
"static analysis",
"circular",
"dependencies",
"typescript",
"javascript",
"coffeescript",
"ES6",
"ES2015",
"AMD",
"CommonJS",
"validation",
"spelunking"
],
"author": {
"name": "Sander Verweij",
"url": "https://sverweij.github.io"
},
"contributors": [
{
"name": "Klaus Meinhardt",
"url": "https://github.com/ajafff"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sverweij/dependency-cruiser"
},
"bugs": {
"url": "https://github.com/sverweij/dependency-cruiser/issues"
},
"homepage": "https://github.com/sverweij/dependency-cruiser",
"bin": {
"dependency-cruiser": "bin/dependency-cruise.js",
"dependency-cruise": "bin/dependency-cruise.js",
"depcruise": "bin/dependency-cruise.js",
"depcruise-fmt": "bin/depcruise-fmt.js",
"depcruise-wrap-stream-in-html": "bin/wrap-stream-in-html.js"
},
"main": "src/main/index.js",
"types": "types/dependency-cruiser.d.ts",
"files": [
"bin/",
"configs/**/*.js",
"src/",
"!src/**/*.hbs",
"!src/**/*.md",
"!**/*.DS_Store",
"types/*.d.ts",
"LICENSE",
"package.json",
"README.md"
],
"scripts": {
"build": "make dev-build",
"build:clean": "make clean",
"check": "npm-run-all build lint depcruise test:cover",
"check:full": "npm-run-all check test:glob test:yarn-pnp",
"depcruise": "node ./bin/dependency-cruise.js --validate -- src bin test configs types utl",
"depcruise:explain": "node ./bin/dependency-cruise.js --output-type err-long --validate -- src bin test configs types utl",
"depcruise:graph:doc": "npm-run-all depcruise:graph:doc:json depcruise:graph:doc:schema depcruise:graph:doc:types --parallel depcruise:graph:doc:html depcruise:graph:doc:html* depcruise:graph:doc:svg* depcruise:graph:doc:theming:*",
"depcruise:graph:doc:json": "node ./bin/dependency-cruise.js --validate --include-only '^(src|bin)' --output-type json bin src --output-to tmp_graph_deps.json",
"depcruise:graph:doc:html": "./bin/depcruise-fmt.js -T dot -f - tmp_graph_deps.json | dot -T svg | node bin/wrap-stream-in-html.js > docs/dependency-cruiser-dependency-graph.html",
"depcruise:graph:doc:html-archi": "./bin/depcruise-fmt.js -T archi -f - tmp_graph_deps.json | dot -T svg -Grankdir=TD | node bin/wrap-stream-in-html.js > docs/dependency-cruiser-archi-graph.html",
"depcruise:graph:doc:html-dir": "./bin/depcruise-fmt.js -T ddot -f - tmp_graph_deps.json | dot -T svg -Grankdir=TD | node bin/wrap-stream-in-html.js > docs/dependency-cruiser-dir-graph.html",
"depcruise:graph:doc:svg": "./bin/depcruise-fmt.js -T dot -f - tmp_graph_deps.json | dot -T svg > doc/real-world-samples/dependency-cruiser-without-node_modules.svg",
"depcruise:graph:doc:svg-archi": "./bin/depcruise-fmt.js -T archi -f - tmp_graph_deps.json | dot -Grankdir=TD -T svg > doc/real-world-samples/dependency-cruiser-archi-graph.svg",
"depcruise:graph:doc:svg-dir": "./bin/depcruise-fmt.js -T ddot -f - tmp_graph_deps.json | dot -Grankdir=TD -T svg > doc/real-world-samples/dependency-cruiser-dir-graph.svg",
"depcruise:graph:doc:schema": "cd utl/schema && node ../../bin/dependency-cruise.js --validate ../../.dependency-cruiser.json --prefix https://github.com/sverweij/dependency-cruiser/blob/develop/utl/schema/ --output-type dot . | dot -Gsplines=true -T svg | tee ../overview.svg | node ../../bin/wrap-stream-in-html.js > ../../docs/schema-overview.html && cd -",
"depcruise:graph:doc:theming:bare": " bin/dependency-cruise.js -Tdot -v doc/assets/theming/bare.config.js src/main | dot -Tsvg > doc/assets/theming/bare.svg",
"depcruise:graph:doc:theming:base": " bin/dependency-cruise.js -Tdot -v doc/assets/theming/base.config.js src/main | dot -Tsvg > doc/assets/theming/base.svg",
"depcruise:graph:doc:theming:engineering": " bin/dependency-cruise.js -Tdot -v doc/assets/theming/engineering.config.js src/main | dot -Tsvg > doc/assets/theming/engineering.svg",
"depcruise:graph:doc:theming:vertical": " bin/dependency-cruise.js -Tdot -v doc/assets/theming/vertical.config.js src/main | dot -Tsvg > doc/assets/theming/vertical.svg",
"depcruise:graph:doc:types": "cd types && node ../bin/dependency-cruise.js --ts-pre-compilation-deps --validate ../.dependency-cruiser.json --output-type dot . | dot -T svg > overview.svg && cd -",
"depcruise:graph:osage": "node ./bin/dependency-cruise.js --validate --include-only '(^src|^[^/]+(js|json)$)' --output-type dot bin src | osage -Gpack=32 -GpackMode=array2 -T svg > tmp_deps.svg",
"depcruise:graph:fdp": "node ./bin/dependency-cruise.js --validate --include-only '^src' --output-type dot bin src | fdp -GK=0.1 -Gsplines=true -T svg > tmp_deps.svg",
"depcruise:report": "node ./bin/dependency-cruise.js --output-type err-html --validate -- src bin test configs types > dependency-violations.html",
"lint": "npm-run-all --parallel --aggregate-output lint:eslint lint:prettier:check lint:types",
"lint:eslint": "eslint bin/dependency-cruise.js src test configs utl --cache --cache-location .cache/eslint/",
"lint:eslint:fix": "eslint --fix bin src test configs utl --cache --cache-location .cache/eslint/",
"lint:fix": "npm-run-all lint:eslint:fix lint:prettier lint:types:fix",
"lint:prettier": "prettier --loglevel warn --write src/\\*\\*/\\*.{js,json} {utl,configs}/\\*\\*/\\*.js bin/\\* !**/*.template.js types/\\*.d.ts test/\\*\\*/\\*.{spec,utl}.js",
"lint:prettier:check": "prettier --loglevel warn --check src/\\*\\*/\\*.{js,json} {utl,configs}/\\*\\*/\\*.js bin/\\* !**/*.template.js types/\\*.d.ts test/\\*\\*/\\*.{spec,utl}.js",
"lint:types": "npm-run-all lint:types:tsc lint:types:tslint",
"lint:types:tsc": "tsc --noEmit --strict --types --noUnusedLocals --noUnusedParameters types/dependency-cruiser.d.ts",
"lint:types:tslint": "tslint types/dependency-cruiser.d.ts",
"lint:types:fix": "tslint --fix types/*.d.ts",
"scm:push": "run-p --aggregate-output scm:push:*",
"scm:push:bitbucket-mirror": "run-p --aggregate-output scm:push:bitbucket-mirror:*",
"scm:push:bitbucket-mirror:commits": "git push bitbucket-mirror",
"scm:push:bitbucket-mirror:tags": "git push --tags bitbucket-mirror",
"scm:push:github": "run-p --aggregate-output scm:push:github:*",
"scm:push:github:commits": "git push",
"scm:push:github:tags": "git push --tags",
"scm:push:gitlab-mirror": "run-p --aggregate-output scm:push:gitlab-mirror:*",
"scm:push:gitlab-mirror:commits": "git push gitlab-mirror",
"scm:push:gitlab-mirror:tags": "git push --tags gitlab-mirror",
"scm:stage": "git add .",
"test": "mocha --timeout 4000 \"test/**/*.spec.js\"",
"test:cover": "nyc --check-coverage npm test",
"test:glob": "set -f && test \"`bin/dependency-cruise.js test/extract/fixtures/gather-globbing/packages/**/src/**/*.js | grep \"no dependency violations found\"`\" = \"✔ no dependency violations found (6 modules, 0 dependencies cruised)\"",
"test:yarn-pnp": "npm-run-all test:yarn-pnp:cleanup test:yarn-pnp:pack test:yarn-pnp:copy test:yarn-pnp:install test:yarn-pnp:run test:yarn-pnp:test test:yarn-pnp:cleanup",
"test:yarn-pnp:pack": "npm pack",
"test:yarn-pnp:copy": "shx cp -r test/integration/yarn-pnp.template test/integration/yarn-pnp.testing-ground",
"test:yarn-pnp:install": "cd test/integration/yarn-pnp.testing-ground && yarn && yarn add -D ../../../dependency-cruiser*.tgz",
"test:yarn-pnp:run": "cd test/integration/yarn-pnp.testing-ground && yarn dependency-cruise:json",
"test:yarn-pnp:test": "cd test/integration/yarn-pnp.testing-ground && yarn test",
"test:yarn-pnp:cleanup": "shx rm -rf test/integration/yarn-pnp.testing-ground dependency-cruiser*.tgz",
"test:load": "hyperfine --warmup 3 --runs 30 \"bin/dependency-cruise.js --validate -- src bin test configs\"",
"test:load:short": "hyperfine --warmup 1 --runs 5 \"bin/dependency-cruise.js --validate -- src bin test configs\"",
"test:watch": "mocha --watch --watch-extensions=json --reporter=min test/\\*\\*/\\*.spec.js",
"update-dependencies": "npm-run-all upem:update upem:install build:clean build lint:fix depcruise test:cover",
"upem:install": "npm install",
"upem:update": "npm outdated --json | upem",
"version": "npm-run-all build depcruise:graph:doc scm:stage"
},
"dependencies": {
"acorn": "7.1.1",
"acorn-loose": "7.0.0",
"acorn-walk": "7.1.1",
"ajv": "6.12.2",
"chalk": "4.0.0",
"commander": "5.1.0",
"enhanced-resolve": "4.1.1",
"figures": "3.2.0",
"get-stream": "5.1.0",
"glob": "7.1.6",
"handlebars": "4.7.6",
"indent-string": "4.0.0",
"inquirer": "7.1.0",
"lodash": "4.17.15",
"pnp-webpack-plugin": "1.6.4",
"safe-regex": "2.1.1",
"semver": "7.3.2",
"semver-try-require": "3.0.0",
"strip-json-comments": "3.1.0",
"teamcity-service-messages": "0.1.11",
"tsconfig-paths-webpack-plugin": "3.2.0",
"wrap-ansi": "7.0.0"
},
"devDependencies": {
"chai": "4.2.0",
"chai-json-schema": "1.5.1",
"coffeescript": "2.5.1",
"eslint": "6.8.0",
"eslint-config-moving-meadow": "1.3.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-budapestian": "1.2.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-mocha": "6.3.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.4.0",
"eslint-plugin-unicorn": "19.0.1",
"husky": "4.2.5",
"intercept-stdout": "0.1.2",
"lint-staged": "10.1.7",
"mocha": "7.1.2",
"normalize-newline": "3.0.0",
"npm-run-all": "4.1.5",
"nyc": "15.0.1",
"prettier": "2.0.5",
"shx": "0.3.2",
"symlink-dir": "4.0.1",
"tslint": "6.1.1",
"tslint-config-prettier": "1.18.0",
"typescript": "3.8.3",
"upem": "3.1.2",
"vue-template-compiler": "2.6.11",
"yarn": "1.22.4"
},
"nyc": {
"statements": 99.85,
"branches": 99.7,
"functions": 100,
"lines": 99.85,
"exclude": [
"bin",
"configs/**/*",
"test/**/*",
"src/**/*.template.js",
"src/cli/init-config/get-user-input.js",
"coverage/**/*",
"tmp*",
"utl/**/*",
"docs/**/*",
"doc/**/*"
],
"reporter": [
"text-summary",
"html",
"lcov"
],
"all": true
},
"eslintIgnore": [
"node_modules",
"coverage",
"tmp",
"src/**/*.template.js",
"test/integration/**",
"test/*/fixtures/**",
"test/*/*/fixtures/**",
"types/**"
],
"engines": {
"node": "^10||^12||>=13"
},
"supportedTranspilers": {
"coffee-script": ">=1.0.0 <2.0.0",
"coffeescript": ">=1.0.0 <3.0.0",
"livescript": ">=1.0.0 <2.0.0",
"typescript": ">=2.0.0 <4.0.0",
"vue-template-compiler": ">=2.0.0 <3.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{utl,src,config}/**/*.js": [
"eslint --fix"
],
"{utl,src,config}/**/*.{js,json}": [
"prettier --write"
],
"bin/*": [
"eslint --fix",
"prettier --write"
],
"test/**/*.{utl,spec}.js": [
"eslint --fix",
"prettier --write"
],
"*.d.ts": [
"tslint --fix",
"prettier --write --ignore-path .prettierignore"
]
}
}