UNPKG

dependency-cruiser

Version:

Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.

134 lines (133 loc) 4.68 kB
{ "name": "dependency-cruiser", "version": "4.1.1", "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.", "bin": { "dependency-cruiser": "bin/dependency-cruise", "dependency-cruise": "bin/dependency-cruise", "depcruise": "bin/dependency-cruise" }, "main": "src/main/index.js", "scripts": { "build": "make dev-build", "build:clean": "make clean", "check": "npm-run-all build lint depcruise test:cover", "check:full": "npm-run-all check nsp", "depcruise": "node ./bin/dependency-cruise --validate .dependency-cruiser-custom.json src bin/dependency-cruise test", "depcruise:graph": "node ./bin/dependency-cruise --exclude \"(^node_modules|^fs$|^path$)\" --output-type dot --validate .dependency-cruiser-custom.json bin src | dot -T svg > tmp_deps.svg", "depcruise:graph:doc": "npm-run-all depcruise:graph:doc:generate depcruise:graph:doc:optimize", "depcruise:graph:doc:generate": "./bin/dependency-cruise --exclude \"(^node_modules|^fs$|^path$)\" --output-type dot --validate .dependency-cruiser-custom.json src bin/dependency-cruise | dot -T png > doc/real-world-samples/dependency-cruiser-without-node_modules.png", "depcruise:graph:doc:optimize": "optipng doc/real-world-samples/dependency-cruiser-without-node_modules.png", "lint": "eslint bin/dependency-cruise src test", "lint:types": "tslint types/dependency-cruiser.d.ts", "lint:fix": "eslint --fix bin/dependency-cruise src test", "nsp": "nsp check", "npm-check-updates": "ncu --upgrade", "npm-install": "npm install", "postversion": "git push && git push --tags", "preversion": "test `git branch | grep \"^* [a-zA-Z]\" | cut -c 3-` = 'master'", "test": "mocha test/*/*.spec.js test/*/*/*.spec.js 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 cruised)\"", "test:long": "mocha test/*/*.spec.js test/*/*/*.spec.js test/*/*/*/*.spec.js", "test:watch": "mocha --watch --watch-extensions=json --reporter=min test/*/*.spec.js test/*/*/*.spec.js test/*/*/*/*.spec.js", "update-dependencies": "npm-run-all npm-check-updates npm-install build:clean build lint:fix depcruise test:cover" }, "keywords": [ "static analysis", "circular", "dependencies", "typescript", "javascript", "coffeescript", "ES6", "ES2015", "AMD", "CommonJS", "validation" ], "author": { "name": "Sander Verweij", "url": "https://sverweij.github.io" }, "contributors": [ { "name": "Klaus Meinhardt", "url": "https://github.com/ajafff" } ], "license": "MIT", "devDependencies": { "chai": "4.1.2", "chai-json-schema": "1.5.0", "coffeescript": "2.3.1", "eslint": "5.0.1", "eslint-plugin-import": "2.13.0", "eslint-plugin-mocha": "5.0.0", "eslint-plugin-node": "6.0.1", "eslint-plugin-security": "1.4.0", "intercept-stdout": "0.1.2", "js-makedepend": "3.0.1", "mocha": "5.2.0", "normalize-newline": "3.0.0", "npm-check-updates": "2.14.2", "npm-run-all": "4.1.3", "nsp": "3.2.1", "nyc": "12.0.2", "symlink-dir": "1.1.3", "tslint": "5.10.0", "typescript": "2.9.2" }, "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", "dependencies": { "acorn": "5.7.1", "ajv": "6.5.2", "chalk": "2.4.1", "commander": "2.16.0", "enhanced-resolve": "4.1.0", "figures": "2.0.0", "glob": "7.1.2", "handlebars": "4.0.11", "lodash": "4.17.10", "resolve": "1.8.1", "safe-regex": "1.1.0", "semver": "5.5.0", "semver-try-require": "2.0.0" }, "nyc": { "statements": 99.8, "branches": 99.4, "functions": 100, "lines": 99.8, "exclude": [ "test/**/*", "src/report/**/*.template.js", "coverage/**/*", "tmp*", "docs/**/*" ], "reporter": [ "text-summary", "html", "lcov" ], "all": true }, "engines": { "node": ">=6" }, "types": "types/dependency-cruiser.d.ts", "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 <3.0.0" } }