UNPKG

4.44 kBJSONView Raw
1{
2 "name": "recharts",
3 "version": "2.1.5",
4 "description": "React charts",
5 "main": "lib/index",
6 "module": "es6/index",
7 "jsnext:main": "es6/index",
8 "types": "types/index.d.ts",
9 "sideEffects": false,
10 "files": [
11 "*.md",
12 "demo",
13 "es6",
14 "lib",
15 "umd",
16 "src",
17 "types"
18 ],
19 "keywords": [
20 "react",
21 "reactjs",
22 "chart",
23 "react-component"
24 ],
25 "scripts": {
26 "build": "rimraf types && npm run build-cjs && npm run build-es6 && rimraf umd && npm run build-umd",
27 "build-cjs": "rimraf lib && cross-env NODE_ENV=commonjs babel ./src -d lib --extensions '.js,.ts,.tsx'",
28 "build-es6": "rimraf es6 && cross-env NODE_ENV=es6 babel ./src -d es6 --extensions '.js,.ts,.tsx'",
29 "build-umd": "rimraf umd && cross-env NODE_ENV=production webpack --entry ./src/index.ts -o umd",
30 "demo": "webpack serve --config demo/webpack.config.js --port 3000 --host 127.0.0.1 --progress --profile --content-base demo/",
31 "test": "cross-env NODE_ENV=test karma start test/karma.conf.js",
32 "lint": "eslint './src/**/*.?(ts|tsx)'",
33 "autofix": "eslint './src/**/*.?(ts|tsx)' --fix",
34 "analyse": "cross-env NODE_ENV=analyse webpack ./src/index.ts -o umd/Recharts.js",
35 "tsc": "tsc"
36 },
37 "pre-commit": [],
38 "pre-push": [
39 "test",
40 "lint"
41 ],
42 "repository": {
43 "type": "git",
44 "url": "https://github.com/recharts/recharts.git"
45 },
46 "author": "recharts group",
47 "bugs": {
48 "url": "https://github.com/recharts/recharts/issues"
49 },
50 "homepage": "https://github.com/recharts/recharts",
51 "peerDependencies": {
52 "react": "^16.0.0 || ^17.0.0",
53 "react-dom": "^16.0.0 || ^17.0.0"
54 },
55 "dependencies": {
56 "@types/d3-scale": "^3.0.0",
57 "@types/d3-shape": "^2.0.0",
58 "@types/d3-interpolate": "^2.0.0",
59 "classnames": "^2.2.5",
60 "d3-interpolate": "^2.0.0",
61 "d3-scale": "^3.0.0",
62 "d3-shape": "^2.0.0",
63 "eventemitter3": "^4.0.1",
64 "lodash": "^4.17.19",
65 "react-is": "^16.10.2",
66 "react-resize-detector": "^6.6.3",
67 "react-smooth": "^2.0.0",
68 "recharts-scale": "^0.4.4",
69 "reduce-css-calc": "^2.1.8"
70 },
71 "devDependencies": {
72 "@babel/cli": "^7.6.4",
73 "@babel/core": "^7.6.4",
74 "@babel/plugin-proposal-class-properties": "^7.0.0",
75 "@babel/plugin-proposal-export-default-from": "^7.0.0",
76 "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
77 "@babel/plugin-proposal-function-bind": "^7.0.0",
78 "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
79 "@babel/plugin-transform-runtime": "^7.6.2",
80 "@babel/preset-env": "^7.6.3",
81 "@babel/preset-react": "^7.6.3",
82 "@babel/preset-typescript": "^7.6.0",
83 "@babel/runtime": "^7.6.3",
84 "@types/classnames": "^2.2.9",
85 "@types/lodash": "^4.14.144",
86 "@types/react": "^16.0.0",
87 "@types/react-dom": "^16.0.0",
88 "@types/react-is": "^17.0.0",
89 "@types/react-router-dom": "^5.1.7",
90 "@typescript-eslint/eslint-plugin": "^4.11.0",
91 "@typescript-eslint/parser": "^4.11.0",
92 "babel-eslint": "^10.1.0",
93 "babel-loader": "^8.0.0",
94 "babel-plugin-istanbul": "^6.0.0",
95 "babel-plugin-lodash": "^3.3.0",
96 "babel-preset-airbnb": "^5.0.0",
97 "chai": "^4.2.0",
98 "chai-enzyme": "^1.0.0-beta.1",
99 "cross-env": "^7.0.3",
100 "d3-scale-chromatic": "^2.0.0",
101 "enzyme": "^3.10.0",
102 "enzyme-adapter-react-16": "^1.15.6",
103 "eslint": "^7.16.0",
104 "eslint-config-airbnb": "^18.2.1",
105 "eslint-config-prettier": "^7.1.0",
106 "eslint-plugin-import": "^2.22.1",
107 "eslint-plugin-jsx-a11y": "^6.4.1",
108 "eslint-plugin-prettier": "^3.1.2",
109 "eslint-plugin-react": "^7.19.0",
110 "json-loader": "^0.5.7",
111 "karma": "^6.0.0",
112 "karma-chai": "^0.1.0",
113 "karma-chrome-launcher": "^3.1.0",
114 "karma-coverage": "^2.0.2",
115 "karma-coveralls": "^2.1.0",
116 "karma-firefox-launcher": "^2.1.0",
117 "karma-mocha": "^2.0.1",
118 "karma-sourcemap-loader": "^0.3.7",
119 "karma-webpack": "^5.0.0",
120 "mocha": "^8.2.1",
121 "pre-commit": "^1.1.3",
122 "prettier": "^2.2.1",
123 "react": "^16.0.0",
124 "react-dom": "^16.0.0",
125 "react-router-dom": "^5.1.2",
126 "react-test-renderer": "^16.12.0",
127 "rimraf": "^3.0.2",
128 "sinon": "^9.2.2",
129 "terser-webpack-plugin": "^5.1.1",
130 "ts-loader": "^8.0.12",
131 "typescript": "^4.1.3",
132 "webpack": "^5.0.0",
133 "webpack-bundle-analyzer": "^4.4.0",
134 "webpack-cli": "^4.5.0",
135 "webpack-dev-server": "^3.11.0"
136 },
137 "license": "MIT"
138}