UNPKG

react-hierarchy-tree-graph

Version:

React component to create interactive D3 tree hierarchies

140 lines (139 loc) 4.15 kB
{ "name": "react-hierarchy-tree-graph", "version": "1.0.3", "description": "React component to create interactive D3 tree hierarchies", "main": "lib/react-d3-tree.min.js", "scripts": { "clean:lib": "rimraf lib/*", "precommit": "lint-staged", "build": "yarn clean:lib && webpack --progress --colors --env build", "dev": "yarn clean:lib && webpack --progress --colors --watch --env dev", "lint": "eslint src/**/*.js", "test": "yarn lint && jest --coverage --verbose", "test:clean": "rimraf ./coverage", "test:watch": "jest --watchAll", "test:cov": "jest --coverage --verbose", "coveralls": "cat ./coverage/lcov.info | coveralls", "show:cov": "open coverage/lcov-report/index.html", "docs:react": "react-docgen src -e src/**/*.test.js$|scripts/buildDocs.sh", "docs": "yarn docs:react", "docs:util": "jsdoc2md src/util/index.js > docs/util/util.md", "docs:clean": "rimraf docs/components/* && rimraf docs/util/*", "release": "yarn test && yarn build && yarn docs && git commit -a", "preanalyze": "rimraf stats.json", "analyze": "webpack --config webpack.config.js --env build --profile --json > stats.json && echo '==> http://webpack.github.io/analyse/'", "start": "webpack-dev-server --hot --open --host localhost" }, "lint-staged": { "src/**/*.js": [ "eslint", "prettier --write --single-quote --trailing-comma=all --print-width 100", "git add" ] }, "jest": { "collectCoverageFrom": [ "src/**/*.{js,jsx}", "!src/index.js", "!src/util/*", "!src/**/*.test.{js,jsx}", "!playground/*" ], "coverageThreshold": { "global": { "statements": 94, "branches": 84, "functions": 90, "lines": 94 } }, "setupTestFrameworkScriptFile": "<rootDir>/jest/setup.js", "moduleNameMapper": { ".*\\.(css|less|styl|scss|sass)$": "<rootDir>/jest/mocks/cssModule.js", ".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/jest/mocks/image.js" } }, "greenkeeper": { "ignore": [ "d3", "react-transition-group", "webpack" ] }, "dependencies": { "clone": "^2.1.1", "d3": "3.5.17", "deep-equal": "^1.0.1", "prop-types": "^15.5.10", "react-transition-group": "^1.1.3", "uuid": "^3.0.1" }, "peerDependencies": { "react": "^15.0.0 || ^16.0.0" }, "devDependencies": { "babel-cli": "6.26.0", "babel-core": "6.26.0", "babel-eslint": "8.2.6", "babel-jest": "^21.2.0", "babel-loader": "7.1.2", "babel-plugin-add-module-exports": "0.2.1", "babel-preset-es2015": "6.24.1", "babel-preset-react": "^6.5.0", "babel-preset-stage-0": "^6.5.0", "coveralls": "^3.0.0", "css-loader": "^0.28.1", "enzyme": "^3.4.4", "enzyme-adapter-react-16": "^1.2.0", "eslint": "4.16.0", "eslint-config-airbnb": "^16.1.0", "eslint-config-prettier": "^3.3.0", "eslint-loader": "2.1.0", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^6.0.2", "eslint-plugin-react": "^7.5.1", "husky": "^1.2.0", "jest": "^22.1.3", "jsdoc-to-markdown": "^3.0.0", "lint-staged": "^6.0.0", "np": "^2.20.0", "postcss-loader": "^3.0.0", "prettier": "^1.6.1", "react": "^16.6.3", "react-docgen": "^2.16.0", "react-dom": "^16.6.3", "react-test-renderer": "^16.6.3", "regenerator-runtime": "^0.12.0", "rimraf": "^2.6.1", "style-loader": "^0.22.1", "webpack": "^3.5.6", "webpack-cli": "^3.1.2", "yargs": "12.0.1" }, "repository": { "type": "git", "url": "git+https://github.com/Nilanth/react-d3-tree.git" }, "keywords": [ "react", "d3", "tree", "component", "graph", "svg", "hierarchical-data", "hierarchy", "d3-visualization", "chart" ], "author": "Nilanth", "bugs": { "url": "https://github.com/Nilanth/react-d3-tree/issues" }, "homepage": "https://github.com/Nilanth/react-d3-tree", "directories": { "doc": "docs", "lib": "lib" }, "license": "ISC" }