UNPKG

12 kBJSONView Raw
1{
2 "name": "dependency-cruiser",
3 "version": "9.11.1",
4 "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5 "keywords": [
6 "static analysis",
7 "circular",
8 "dependencies",
9 "typescript",
10 "javascript",
11 "coffeescript",
12 "ES6",
13 "ES2015",
14 "AMD",
15 "CommonJS",
16 "validation",
17 "spelunking"
18 ],
19 "author": {
20 "name": "Sander Verweij",
21 "url": "https://sverweij.github.io"
22 },
23 "contributors": [
24 {
25 "name": "Klaus Meinhardt",
26 "url": "https://github.com/ajafff"
27 }
28 ],
29 "license": "MIT",
30 "repository": {
31 "type": "git",
32 "url": "git+https://github.com/sverweij/dependency-cruiser"
33 },
34 "bugs": {
35 "url": "https://github.com/sverweij/dependency-cruiser/issues"
36 },
37 "homepage": "https://github.com/sverweij/dependency-cruiser",
38 "bin": {
39 "dependency-cruiser": "bin/dependency-cruise.js",
40 "dependency-cruise": "bin/dependency-cruise.js",
41 "depcruise": "bin/dependency-cruise.js",
42 "depcruise-fmt": "bin/depcruise-fmt.js",
43 "depcruise-wrap-stream-in-html": "bin/wrap-stream-in-html.js"
44 },
45 "main": "src/main/index.js",
46 "types": "types/dependency-cruiser.d.ts",
47 "files": [
48 "bin/",
49 "configs/**/*.js",
50 "src/",
51 "!src/**/*.hbs",
52 "!src/**/*.md",
53 "!**/*.DS_Store",
54 "types/*.d.ts",
55 "LICENSE",
56 "package.json",
57 "README.md"
58 ],
59 "scripts": {
60 "build": "make dev-build",
61 "build:clean": "make clean",
62 "check": "npm-run-all build lint depcruise test:cover",
63 "check:full": "npm-run-all check test:glob test:yarn-pnp",
64 "depcruise": "node ./bin/dependency-cruise.js --config -- src bin test configs types tools",
65 "depcruise:explain": "node ./bin/dependency-cruise.js --output-type err-long --config -- src bin test configs types tools",
66 "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:samples",
67 "depcruise:graph:doc:json": "node ./bin/dependency-cruise.js --config --output-type json bin src test --output-to tmp_graph_deps.json",
68 "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",
69 "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",
70 "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",
71 "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",
72 "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",
73 "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",
74 "depcruise:graph:doc:schema": "cd tools/schema && node ../../bin/dependency-cruise.js --config --output-type dot . | dot -T svg | tee ../overview.svg | node ../../bin/wrap-stream-in-html.js > ../../docs/schema-overview.html && cd -",
75 "depcruise:graph:doc:samples": "sh tools/generate-samples.sh",
76 "depcruise:graph:doc:types": "cd types && node ../bin/dependency-cruise.js --ts-pre-compilation-deps --config --output-type dot . | dot -T svg > overview.svg && cd -",
77 "depcruise:graph:dot": "node ./bin/dependency-cruise.js --config --include-only '^(bin|src)' --output-type dot bin src | dot -T svg > tmp_deps.svg",
78 "depcruise:graph:fdp": "node ./bin/dependency-cruise.js --config --include-only '^(bin|src)' --output-type dot bin src | fdp -GK=0.1 -Gsplines=true -T svg > tmp_deps.svg",
79 "depcruise:graph:osage": "node ./bin/dependency-cruise.js --config --include-only '(^(bin|src)|^[^/]+(js|json)$)' --output-type dot bin src | osage -Gpack=32 -GpackMode=array2 -T svg > tmp_deps.svg",
80 "depcruise:report": "node ./bin/dependency-cruise.js --output-type err-html --config --output-to dependency-violations.html -- src bin test configs types",
81 "lint": "npm-run-all --parallel --aggregate-output lint:eslint lint:prettier:check lint:types",
82 "lint:eslint": "eslint bin/dependency-cruise.js src test configs tools/**/*.js tools/schema/**/*.mjs --cache --cache-location .cache/eslint/",
83 "lint:eslint:fix": "eslint --fix bin src test configs tools/**/*.js tools/schema/**/*.mjs --cache --cache-location .cache/eslint/",
84 "lint:fix": "npm-run-all lint:eslint:fix lint:prettier lint:types:fix",
85 "lint:prettier": "prettier --loglevel warn --write src/**/*.{js,json} {tools,configs}/**/*.js tools/**/*.mjs bin/* !**/*.template.js types/*.d.ts test/**/*.{spec,utl}.js",
86 "lint:prettier:check": "prettier --loglevel warn --check src/**/*.{js,json} {tools,configs}/**/*.js tools/**/*.mjs bin/* !**/*.template.js types/*.d.ts test/**/*.{spec,utl}.js",
87 "lint:types": "npm-run-all lint:types:tsc lint:types:lint",
88 "lint:types:tsc": "tsc --noEmit --strict --types --noUnusedLocals --noUnusedParameters types/dependency-cruiser.d.ts",
89 "lint:types:lint": "eslint --no-ignore --config types/.eslintrc.json types/*.d.ts",
90 "lint:types:fix": "eslint --no-ignore --config types/.eslintrc.json --fix types/*.d.ts",
91 "scm:push": "run-p --aggregate-output scm:push:*",
92 "scm:push:bitbucket-mirror": "run-p --aggregate-output scm:push:bitbucket-mirror:*",
93 "scm:push:bitbucket-mirror:commits": "git push bitbucket-mirror",
94 "scm:push:bitbucket-mirror:tags": "git push --tags bitbucket-mirror",
95 "scm:push:github": "run-p --aggregate-output scm:push:github:*",
96 "scm:push:github:commits": "git push",
97 "scm:push:github:tags": "git push --tags",
98 "scm:push:gitlab-mirror": "run-p --aggregate-output scm:push:gitlab-mirror:*",
99 "scm:push:gitlab-mirror:commits": "git push gitlab-mirror",
100 "scm:push:gitlab-mirror:tags": "git push --tags gitlab-mirror",
101 "scm:stage": "git add .",
102 "test": "mocha --timeout 4000 \"test/**/*.spec.js\"",
103 "test:cover": "nyc --check-coverage npm test",
104 "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)\"",
105 "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",
106 "test:yarn-pnp:pack": "npm pack",
107 "test:yarn-pnp:copy": "shx cp -r test/integration/yarn-pnp.template test/integration/yarn-pnp.testing-ground",
108 "test:yarn-pnp:install": "cd test/integration/yarn-pnp.testing-ground && yarn && yarn add -D ../../../dependency-cruiser*.tgz",
109 "test:yarn-pnp:run": "cd test/integration/yarn-pnp.testing-ground && yarn dependency-cruise:json",
110 "test:yarn-pnp:test": "cd test/integration/yarn-pnp.testing-ground && yarn test",
111 "test:yarn-pnp:cleanup": "shx rm -rf test/integration/yarn-pnp.testing-ground dependency-cruiser*.tgz",
112 "test:load": "hyperfine --warmup 3 --runs 30 \"bin/dependency-cruise.js --validate -- src bin test configs\"",
113 "test:load:short": "hyperfine --warmup 1 --runs 5 \"bin/dependency-cruise.js --validate -- src bin test configs\"",
114 "test:watch": "mocha --watch --watch-extensions=json --reporter=min test/\\*\\*/\\*.spec.js",
115 "update-dependencies": "npm-run-all upem:update upem:install build:clean build lint:fix depcruise test:cover",
116 "upem:install": "npm install",
117 "upem:update": "npm outdated --json | upem",
118 "version": "npm-run-all build depcruise:graph:doc scm:stage"
119 },
120 "dependencies": {
121 "acorn": "7.4.0",
122 "acorn-loose": "7.1.0",
123 "acorn-walk": "7.2.0",
124 "ajv": "6.12.4",
125 "chalk": "4.1.0",
126 "commander": "6.0.0",
127 "enhanced-resolve": "5.0.0-beta.10",
128 "figures": "3.2.0",
129 "get-stream": "6.0.0",
130 "glob": "7.1.6",
131 "handlebars": "4.7.6",
132 "indent-string": "4.0.0",
133 "inquirer": "7.3.3",
134 "json5": "2.1.3",
135 "lodash": "4.17.20",
136 "pnp-webpack-plugin": "1.6.4",
137 "safe-regex": "2.1.1",
138 "semver": "7.3.2",
139 "semver-try-require": "3.0.0",
140 "teamcity-service-messages": "0.1.11",
141 "tsconfig-paths-webpack-plugin": "3.3.0",
142 "wrap-ansi": "7.0.0"
143 },
144 "devDependencies": {
145 "@babel/core": "7.11.4",
146 "@babel/plugin-transform-modules-commonjs": "7.10.4",
147 "@typescript-eslint/eslint-plugin": "3.9.1",
148 "@typescript-eslint/parser": "3.9.1",
149 "chai": "4.2.0",
150 "chai-json-schema": "1.5.1",
151 "coffeescript": "2.5.1",
152 "eslint": "7.7.0",
153 "eslint-config-moving-meadow": "2.0.4",
154 "eslint-config-prettier": "6.11.0",
155 "eslint-plugin-budapestian": "2.0.0",
156 "eslint-plugin-import": "2.22.0",
157 "eslint-plugin-mocha": "8.0.0",
158 "eslint-plugin-node": "11.1.0",
159 "eslint-plugin-security": "1.4.0",
160 "eslint-plugin-unicorn": "21.0.0",
161 "husky": "4.2.5",
162 "intercept-stdout": "0.1.2",
163 "lint-staged": "10.2.11",
164 "mocha": "8.1.1",
165 "normalize-newline": "3.0.0",
166 "npm-run-all": "4.1.5",
167 "nyc": "15.1.0",
168 "prettier": "2.0.5",
169 "shx": "0.3.2",
170 "symlink-dir": "4.1.0",
171 "typescript": "4.0.2",
172 "upem": "4.0.1",
173 "vue-template-compiler": "2.6.12",
174 "yarn": "1.22.4",
175 "~": "file:."
176 },
177 "upem": {
178 "donotup": [
179 {
180 "package": "enhanced-resolve",
181 "because": "we're running with enhanced-resolve version 5, which is faster, uses less memory - but also still is in beta"
182 },
183 {
184 "package": "acorn",
185 "because": "acorn-jsx is (officially) not yet compatible with acorn 8, and on install npm/ yarn generate a disconcerting warning about it. This donotup can be removed once PR 116 on acorn-jsx is released"
186 },
187 {
188 "package": "acorn-loose",
189 "because": "see acorn"
190 },
191 {
192 "package": "acorn-walk",
193 "because": "see acorn"
194 }
195 ]
196 },
197 "nyc": {
198 "statements": 99.85,
199 "branches": 99.7,
200 "functions": 100,
201 "lines": 99.85,
202 "exclude": [
203 "bin",
204 "configs/**/*",
205 "test/**/*",
206 "src/**/*.template.js",
207 "src/cli/init-config/get-user-input.js",
208 "src/cli/ears/*-listener.js",
209 "src/cli/ears/*-listener/index.js",
210 "coverage/**/*",
211 "tmp*",
212 "tools/**/*",
213 "docs/**/*",
214 "doc/**/*"
215 ],
216 "reporter": [
217 "text-summary",
218 "html",
219 "lcov"
220 ],
221 "all": true
222 },
223 "eslintIgnore": [
224 "node_modules",
225 "coverage",
226 "tmp",
227 "src/**/*.template.js",
228 "test/integration/**",
229 "test/*/fixtures/**",
230 "test/*/*/fixtures/**",
231 "types/**"
232 ],
233 "engines": {
234 "node": "^10||^12||>=13"
235 },
236 "supportedTranspilers": {
237 "babel": ">=7.0.0 <8.0.0",
238 "coffee-script": ">=1.0.0 <2.0.0",
239 "coffeescript": ">=1.0.0 <3.0.0",
240 "livescript": ">=1.0.0 <2.0.0",
241 "typescript": ">=2.0.0 <5.0.0",
242 "vue-template-compiler": ">=2.0.0 <3.0.0"
243 },
244 "husky": {
245 "hooks": {
246 "pre-commit": "lint-staged"
247 }
248 },
249 "lint-staged": {
250 "{tools,src,config}/**/*.js": [
251 "eslint --fix"
252 ],
253 "{tools,src,config}/**/*.{mjs,js,json}": [
254 "prettier --write"
255 ],
256 "bin/*": [
257 "eslint --fix",
258 "prettier --write"
259 ],
260 "test/**/*.{utl,spec}.js": [
261 "eslint --fix",
262 "prettier --write"
263 ],
264 "*.d.ts": [
265 "eslint --config types/.eslintrc.json --fix",
266 "prettier --write --ignore-path .prettierignore"
267 ]
268 }
269}