forked from toomuchdesign/react-minimal-pie-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
126 lines (126 loc) · 3.92 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "react-minimal-pie-chart",
"version": "8.4.0",
"description": "Lightweight but versatile SVG pie/donut charts for React",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"browser": "dist/index.js",
"types": "types/index.d.ts",
"files": [
"dist",
"es",
"lib",
"types"
],
"sideEffects": false,
"scripts": {
"test": "jest ./src",
"test:bundles": "npm run test:bundles:snapshot && npm run test:bundles:unit && npm run test:bundles:es5 && npm run test:bundles:size",
"test:bundles:unit": "jest ./src --config ./jest/es.config.js && jest ./src --config ./jest/lib.config.js && jest ./src --config ./jest/dist.config.js",
"test:bundles:snapshot": "jest ./jest/__tests__/bundles-snapshot.test.js",
"test:bundles:es5": "es-check es5 './@(lib|dist)/*.js'",
"test:bundles:size": "size-limit",
"test:source": "npm run test:ts && npm t -- --coverage",
"test:ts": "tsc -p tsconfig.test.json",
"test:update": "npm run compile:source && npm run test:bundles:snapshot -- -u && git add ./jest/__tests__/__snapshots__",
"clean": "rm -rf lib es dist types",
"compile": "npm run clean && npm run compile:types && npm run compile:source",
"compile:source": "rollup -c --bundleConfigAsCjs",
"compile:types": "tsc -p tsconfig.build.json",
"format:check": "prettier . --check",
"format:fix": "npm run format:check -- --write",
"preversion": "npm run prepare",
"version": "git add package.json",
"postversion": "git push && git push --tags",
"prepare": "npx simple-git-hooks && npm run test:source && npm run compile && npm run test:bundles",
"start": "storybook dev",
"storybook:build": "storybook build"
},
"keywords": [
"react",
"pie",
"donough",
"arc",
"chart",
"typescript"
],
"repository": {
"type": "git",
"url": "git+https://github.com/toomuchdesign/react-minimal-pie-chart.git"
},
"author": "Andrea Carraro <[email protected]>",
"license": "MIT",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18",
"react-dom": "^16.8.0 || ^17.0.0 || ^18"
},
"dependencies": {
"@types/svg-path-parser": "^1.1.3"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/plugin-transform-react-jsx": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@schwingbat/relative-angle": "^1.0.0",
"@size-limit/preset-small-lib": "^11.1.4",
"@storybook/addon-essentials": "^8.1.6",
"@storybook/react": "^8.1.6",
"@storybook/react-vite": "^8.1.6",
"@storybook/test": "^8.1.6",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^16.0.0",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"babel-jest": "^29.7.0",
"es-check": "^7.2.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-tooltip": "^4.5.1",
"rollup": "^4.18.0",
"simple-git-hooks": "^2.11.1",
"size-limit": "^11.1.4",
"storybook": "^8.1.6",
"svg-partial-circle": "1.0.0",
"svg-path-parser": "^1.1.0",
"typescript": "^5.4.5"
},
"jest": {
"testRegex": "/__tests__/.*\\.test\\.[jt]sx?$",
"testEnvironmentOptions": {
"url": "http://localhost/"
},
"testEnvironment": "jsdom",
"coverageReporters": [
"text",
"lcov"
],
"collectCoverageFrom": [
"<rootDir>/src/**",
"!**/__tests__/**"
],
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.ts"
]
},
"size-limit": [
{
"limit": "2.5 KB",
"path": "./es/index.js",
"ignore": [
"react"
]
}
],
"simple-git-hooks": {
"pre-commit": "npm run format:check && npm run test:source"
}
}