UNPKG

react-d3-graph

Version:

React component to build interactive and configurable graphs with d3 effortlessly

117 lines (116 loc) 4.78 kB
{ "name": "react-d3-graph", "version": "2.6.0", "description": "React component to build interactive and configurable graphs with d3 effortlessly", "author": "Daniel Caldas", "license": "MIT", "scripts": { "check": "npm run docs:lint && npm run lint && npm run test && npm run functional", "check:light": "npm run lint && npm run test", "dev": "cross-env NODE_ENV=dev webpack-dev-server --mode=development --content-base sandbox --config webpack.config.js --inline --hot --port 3002", "dist:rd3g": "rm -rf dist/ && webpack --config webpack.config.dist.js -p --display-modules --optimize-minimize", "dist:sandbox": "npm run generate:tooltips && webpack --config webpack.config.js -p", "dist:transpile": "babel -d lib src", "dist:docs": "documentation --config documentation.yml build src/**/*.js -f html -o gen-docs && documentation build src/**/*.js -f md > gen-docs/DOCUMENTATION.md", "dist": "npm install && npm run check && npm-run-all --parallel dist:*", "wrapup:dist": "github_changelog_generator --user $GITHUB_USERNAME && mv docs/index.html \"docs/$VERSION_PREV.html\" && mv gen-docs/index.html docs/ && mv gen-docs/DOCUMENTATION.md docs/", "docs:lint": "documentation lint src/**/*.js", "docs:watch": "documentation --config documentation.yml build src/**/*.js -f html -o gen-docs --watch", "functional:local": "cross-env CYPRESS_SANDBOX_URL=\"http://localhost:3002\" cypress open", "functional:remote": "cross-env CYPRESS_SANDBOX_URL=\"https://danielcaldas.github.io/react-d3-graph/sandbox/index.html\" cypress open", "functional": "cross-env CYPRESS_SANDBOX_URL=\"http://127.0.0.1:8888\" cypress run", "generate:tooltips": "jsdoc -X ./src/components/graph/graph.config.js > ./tools/graph-config-jsdoc.json && cd tools && node tooltips-docs-generator.js > ../sandbox/graph-config-tooltips.js", "lint:fix": "eslint --config=.eslintrc.js --fix \"src/**/*.js*\" \"sandbox/**/*.js*\"", "lint:src": "eslint --config=.eslintrc.js \"src/**/*.js*\" \"sandbox/**/*.js*\"", "lint:test": "eslint --config=.eslintrc.test.config.js \"test/**/*.spec.js\"", "lint": "npm run lint:src && npm run lint:test && npm run docs:lint", "start": "http-server ./sandbox/ -p 8888 -c-1", "test:clean": "jest --no-cache --updateSnapshot --verbose --coverage --config jest.config.js", "test:watch": "jest --verbose --coverage --watchAll --config jest.config.js", "test": "jest --verbose --coverage --config jest.config.js", "sandbox": "npm run dist:sandbox && npm run start", "prettier": "prettier --write test/**/*" }, "lint-staged": { "*.{js,jsx,json,css,md}": [ "prettier --write", "git add" ] }, "peerDependencies": { "d3": "^5.5.0", "react": "^16.4.1" }, "devDependencies": { "@babel/cli": "7.6.0", "@babel/core": "7.6.0", "@babel/plugin-proposal-class-properties": "7.5.5", "@babel/plugin-proposal-optional-chaining": "7.6.0", "@babel/preset-env": "7.6.0", "@babel/preset-react": "7.0.0", "@cypress/webpack-preprocessor": "4.1.0", "babel-loader": "8.0.6", "cross-env": "5.2.1", "css-loader": "2.0.2", "cypress": "3.8.3", "d3": "^5.5.0", "documentation": "12.1.2", "eslint": "6.3.0", "eslint-config-recommended": "4.0.0", "eslint-plugin-babel": "5.3.0", "eslint-plugin-cypress": "2.6.1", "eslint-plugin-jest": "22.17.0", "eslint-plugin-prettier": "3.1.0", "eslint-plugin-promise": "4.2.1", "eslint-plugin-react": "7.14.3", "eslint-plugin-standard": "4.0.1", "html-webpack-plugin": "2.30.1", "http-server": "^0.12.1", "husky": "3.0.5", "jest": "24.9.0", "jsdoc": "^3.6.3", "lint-staged": "9.2.5", "npm-run-all": "4.1.5", "prettier": "1.19.1", "query-string": "6.8.3", "react": "^16.4.1", "react-addons-test-utils": "15.6.2", "react-dom": "^16.4.2", "react-editable-json-tree": "2.2.1", "react-jsonschema-form": "1.0.4", "react-test-renderer": "16.9.0", "react-toastify": "5.5.0", "react-tooltip": "3.11.6", "style-loader": "0.18.2", "typescript": "3.8.3", "webpack": "4.41.6", "webpack-bundle-analyzer": "^3.0.3", "webpack-cli": "3.3.8", "webpack-dev-server": "^3.1.14", "webpack-visualizer-plugin": "0.1.11" }, "engines": { "node": ">=8.9.0" }, "main": "lib/index.js", "repository": { "type": "git", "url": "git+https://github.com/danielcaldas/react-d3-graph.git" }, "keywords": [ "d3-visualization", "d3js", "graphs", "javascript", "networks", "react", "social-network-analysis", "social-network-graph", "visualization" ], "husky": { "hooks": { "pre-commit": "lint-staged" } } }