forked from sverweij/dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
234 lines (234 loc) · 9.1 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
{
"name": "dependency-cruiser",
"version": "5.1.3",
"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",
"bin": {
"dependency-cruiser": "bin/dependency-cruise",
"dependency-cruise": "bin/dependency-cruise",
"depcruise": "bin/dependency-cruise",
"depcruise-fmt": "bin/depcruise-fmt.js"
},
"main": "src/main/index.js",
"types": "types/dependency-cruiser.d.ts",
"files": [
"bin/",
"configs/**/*.js",
"configs/**/*.json",
"!configs/eslint-config.json",
"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:integration",
"depcruise": "node ./bin/dependency-cruise --validate -- src bin bin/dependency-cruise test configs",
"depcruise:explain": "node ./bin/dependency-cruise --output-type err-long --validate -- src bin bin/dependency-cruise test configs",
"depcruise:graph:dir": "node ./bin/dependency-cruise --validate --include-only '(^src|^[^/]+(js|json)$)' --output-type ddot bin src | dot -T png > tmp_deps.png",
"depcruise:graph:doc": "npm-run-all depcruise:graph:doc:dot depcruise:graph:doc:html depcruise:graph:doc:png",
"depcruise:graph:doc:dot": "node ./bin/dependency-cruise --validate --include-only '^(src|bin|bin/dependency-cruise$)' --output-type dot bin src bin/dependency-cruise --output-to tmp_graph_deps.dot",
"depcruise:graph:doc:html": "cat tmp_graph_deps.dot | dot -T svg -Gsplines=ortho | cat docs/assets/depcruise-graph-head.snippet.html - docs/assets/depcruise-graph-foot.snippet.html > docs/dependency-cruiser-dependency-graph.html",
"depcruise:graph:doc:png": "cat tmp_graph_deps.dot | dot -Gdpi=192 -Gsplines=ortho -T png | pngquant - > doc/real-world-samples/dependency-cruiser-without-node_modules.png",
"depcruise:graph:osage": "node ./bin/dependency-cruise --validate --include-only '(^src|^[^/]+(js|json)$)' --output-type dot bin src | osage -Gpack=16 -GpackMode=array2 -T svg > tmp_deps.svg",
"depcruise:graph:fdp": "node ./bin/dependency-cruise --validate --include-only '^src' --output-type dot bin src | fdp -GK=0.1 -Gsplines=ortho -T svg > tmp_deps.svg",
"depcruise:report": "node ./bin/dependency-cruise --output-type err-html --validate -- src bin bin/dependency-cruise test configs > dependency-violations.html",
"lint": "npm-run-all --parallel --aggregate-output lint:eslint lint:prettier:check lint:types",
"lint:eslint": "eslint bin/dependency-cruise src test configs",
"lint:eslint:fix": "eslint --fix bin/dependency-cruise src test configs",
"lint:fix": "npm-run-all lint:eslint:fix lint:prettier lint:types:fix",
"lint:prettier": "prettier --write {src,configs}/\\*\\*/\\*.{js,json} bin/\\* !**/*.template.js types/\\*.d.ts test/\\*\\*/\\*.{spec,utl}.js",
"lint:prettier:check": "prettier --check {src,configs}/\\*\\*/\\*.{js,json} bin/\\* !**/*.template.js types/\\*.d.ts test/\\*\\*/\\*.{spec,utl}.js",
"lint:types": "tslint types/dependency-cruiser.d.ts",
"lint:types:fix": "tslint --fix types/dependency-cruiser.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 test/extract/fixtures/gather-globbing/packages/**/src/**/*.js | grep \"no dependency violations found\"`\" = \"✔ no dependency violations found (6 modules, 0 dependencies cruised)\"",
"test:integration": "npm-run-all test:integration:cleanup test:integration:pack test:integration:copy test:integration:install test:integration:run test:integration:test test:integration:cleanup",
"test:integration:pack": "npm pack",
"test:integration:copy": "shx cp -r test/integration/yarn-pnp.template test/integration/yarn-pnp.testing-ground",
"test:integration:install": "cd test/integration/yarn-pnp.testing-ground && yarn && yarn add -D ../../../dependency-cruiser*.tgz",
"test:integration:run": "cd test/integration/yarn-pnp.testing-ground && yarn dependency-cruise:json",
"test:integration:test": "cd test/integration/yarn-pnp.testing-ground && yarn test",
"test:integration:cleanup": "shx rm -rf test/integration/yarn-pnp.testing-ground dependency-cruiser*.tgz",
"test:load": "hyperfine --warmup 3 --runs 30 \"bin/dependency-cruise --validate -- src bin bin/dependency-cruise test configs\"",
"test:load:short": "hyperfine --warmup 1 --runs 5 \"bin/dependency-cruise --validate -- src bin bin/dependency-cruise 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.0",
"acorn-loose": "7.0.0",
"acorn-walk": "7.0.0",
"ajv": "6.10.2",
"chalk": "2.4.2",
"commander": "3.0.2",
"enhanced-resolve": "4.1.0",
"figures": "3.0.0",
"get-stream": "5.1.0",
"glob": "7.1.4",
"handlebars": "4.4.0",
"indent-string": "4.0.0",
"inquirer": "7.0.0",
"lodash": "4.17.15",
"pnp-webpack-plugin": "1.5.0",
"regexp-tree": "0.1.14",
"semver": "6.3.0",
"semver-try-require": "3.0.0",
"strip-json-comments": "3.0.1",
"teamcity-service-messages": "0.1.10",
"tsconfig-paths-webpack-plugin": "3.2.0",
"wrap-ansi": "6.0.0"
},
"devDependencies": {
"chai": "4.2.0",
"chai-json-schema": "1.5.1",
"coffeescript": "2.4.1",
"eslint": "6.5.0",
"eslint-config-prettier": "6.3.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-mocha": "6.1.1",
"eslint-plugin-node": "10.0.0",
"eslint-plugin-security": "1.4.0",
"husky": "3.0.7",
"intercept-stdout": "0.1.2",
"lint-staged": "9.4.0",
"mocha": "6.2.1",
"normalize-newline": "3.0.0",
"npm-run-all": "4.1.5",
"nyc": "14.1.1",
"prettier": "1.18.2",
"shx": "0.3.2",
"symlink-dir": "3.1.1",
"tslint": "5.20.0",
"tslint-config-prettier": "1.18.0",
"typescript": "3.6.3",
"upem": "3.1.2",
"yarn": "1.19.0"
},
"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",
"nyc": {
"statements": 99.9,
"branches": 99.8,
"functions": 100,
"lines": 99.9,
"exclude": [
"bin",
"configs/**/*",
"test/**/*",
"src/**/*.template.js",
"src/cli/initConfig/getUserInput.js",
"coverage/**/*",
"tmp*",
"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": "^8.10||^10||^12"
},
"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"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{src,config}/**/*.js": [
"eslint --fix",
"git add"
],
"{src,config}/**/*.{js,json}": [
"prettier --write",
"git add"
],
"bin/*": [
"eslint --fix",
"prettier --write",
"git add"
],
"test/**/*.{utl,spec}.js": [
"eslint --fix",
"prettier --write",
"git add"
],
"*.d.ts": [
"tslint --fix",
"prettier --write --ignore-path .prettierignore",
"git add"
]
}
}