|
1 | 1 | {
|
2 | 2 | "name": "@beautiful-tree/react",
|
3 | 3 | "version": "0.0.1",
|
4 |
| - "private": false, |
| 4 | + "private": false, |
5 | 5 | "author": "Andres Correa Casablanca <castarco@coderspirit.xyz>",
|
6 | 6 | "license": "MIT",
|
7 |
| - "main": "./dist/beautiful-tree.cjs", |
8 |
| - "module": "./dist/beautiful-tree.mjs", |
| 7 | + "main": "./dist/beautiful-tree.cjs", |
| 8 | + "module": "./dist/beautiful-tree.mjs", |
9 | 9 | "exports": {
|
10 | 10 | ".": {
|
11 | 11 | "types": "./dist/beautiful-tree.d.ts",
|
|
27 | 27 | ],
|
28 | 28 | "scripts": {
|
29 | 29 | "build": "rollup --config rollup.config.prod.mjs",
|
| 30 | + "build-storybook": "storybook build", |
30 | 31 | "install-githooks": "if [ -d .git ]; then git config core.hooksPath .hooks; fi",
|
31 | 32 | "lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
|
32 | 33 | "lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
|
33 |
| - "lint:tsc": "tsc" |
| 34 | + "lint:tsc": "tsc", |
| 35 | + "storybook": "storybook dev -p 6006", |
| 36 | + "test": "vitest run", |
| 37 | + "test:coverage": "vitest run --coverage", |
| 38 | + "test:watch": "vitest" |
34 | 39 | },
|
35 | 40 | "devDependencies": {
|
36 | 41 | "@rollup/plugin-commonjs": "^25.0.4",
|
37 | 42 | "@rollup/plugin-node-resolve": "^15.1.0",
|
38 | 43 | "@rollup/plugin-terser": "^0.4.3",
|
39 | 44 | "@rollup/plugin-typescript": "^11.1.2",
|
| 45 | + "@storybook/addon-essentials": "^7.2.3", |
| 46 | + "@storybook/addon-interactions": "^7.2.3", |
| 47 | + "@storybook/addon-links": "^7.2.3", |
| 48 | + "@storybook/addon-onboarding": "^1.0.8", |
| 49 | + "@storybook/blocks": "^7.2.3", |
| 50 | + "@storybook/react": "^7.2.3", |
| 51 | + "@storybook/react-vite": "^7.2.3", |
| 52 | + "@storybook/testing-library": "^0.2.0", |
40 | 53 | "@types/node": "^20.4.10",
|
41 | 54 | "@types/react": "^18.2.20",
|
42 | 55 | "@types/react-dom": "^18.2.7",
|
43 | 56 | "@typescript-eslint/eslint-plugin": "^6.3.0",
|
44 | 57 | "@typescript-eslint/parser": "^6.3.0",
|
| 58 | + "@vitest/coverage-v8": "^0.34.1", |
45 | 59 | "eslint": "^8.47.0",
|
46 | 60 | "eslint-config-prettier": "^9.0.0",
|
47 | 61 | "eslint-plugin-prettier": "^5.0.0",
|
48 | 62 | "eslint-plugin-react": "^7.33.1",
|
49 | 63 | "eslint-plugin-react-hooks": "^4.6.0",
|
50 | 64 | "eslint-plugin-react-refresh": "^0.4.3",
|
| 65 | + "eslint-plugin-storybook": "^0.6.13", |
51 | 66 | "prettier": "^3.0.1",
|
52 | 67 | "publint": "^0.2.0",
|
53 | 68 | "react": "^18.2.0",
|
54 | 69 | "react-dom": "^18.2.0",
|
55 | 70 | "rollup": "^3.28.0",
|
56 | 71 | "rollup-plugin-dts": "^5.3.1",
|
57 |
| - "typescript": "^5.1.6" |
| 72 | + "storybook": "^7.2.3", |
| 73 | + "typescript": "^5.1.6", |
| 74 | + "vitest": "^0.34.1" |
58 | 75 | },
|
59 | 76 | "peerDependencies": {
|
60 | 77 | "react": "^18.2.0",
|
|
0 commit comments