|
6 | 6 | "main": "dist/index.js", |
7 | 7 | "types": "dist/types.d.ts", |
8 | 8 | "isLibrary": true, |
| 9 | + "type": "module", |
9 | 10 | "browserslist": "> 0.5%, last 2 versions, not dead", |
10 | 11 | "repository": "git@github.com:kleros/ui-components-library", |
11 | 12 | "author": "Kleros", |
12 | 13 | "license": "MIT", |
13 | 14 | "scripts": { |
14 | | - "clear": "rm -r .parcel-cache", |
15 | | - "clean": "rm dist/bundle.js", |
16 | | - "start": "parcel src/index.html", |
17 | | - "build": "parcel build", |
18 | | - "prepare": "husky install", |
| 15 | + "build": "vite build", |
| 16 | + "build-storybook": "storybook build", |
19 | 17 | "check-style": "eslint 'src/**/*.{ts,tsx}'", |
20 | | - "check-types": "tsc --noEmit" |
| 18 | + "check-types": "tsc --noEmit", |
| 19 | + "clean": "rm -rf dist", |
| 20 | + "prepare": "husky install", |
| 21 | + "preview": "vite preview", |
| 22 | + "start": "vite", |
| 23 | + "storybook": "storybook dev -p 6006" |
21 | 24 | }, |
22 | 25 | "files": [ |
23 | 26 | "dist" |
24 | 27 | ], |
25 | 28 | "devDependencies": { |
| 29 | + "@chromatic-com/storybook": "^3.2.5", |
26 | 30 | "@commitlint/cli": "^15.0.0", |
27 | 31 | "@commitlint/config-conventional": "^15.0.0", |
28 | 32 | "@eslint/compat": "^1.2.7", |
29 | 33 | "@eslint/eslintrc": "^3.3.0", |
30 | 34 | "@eslint/js": "^9.21.0", |
31 | | - "@parcel/packager-ts": "^2.2.1", |
32 | | - "@parcel/transformer-svg-react": "^2.0.1", |
33 | | - "@parcel/transformer-typescript-types": "^2.2.1", |
| 35 | + "@storybook/addon-essentials": "^8.6.4", |
| 36 | + "@storybook/addon-interactions": "^8.6.4", |
| 37 | + "@storybook/addon-onboarding": "^8.6.4", |
| 38 | + "@storybook/blocks": "^8.6.4", |
| 39 | + "@storybook/react": "^8.6.4", |
| 40 | + "@storybook/react-vite": "^8.6.4", |
| 41 | + "@storybook/test": "^8.6.4", |
34 | 42 | "@tailwindcss/postcss": "^4.0.11", |
| 43 | + "@types/node": "^22.13.10", |
35 | 44 | "@types/react": "^18.0.9", |
36 | 45 | "@types/react-dom": "^18.0.3", |
37 | 46 | "@types/styled-components": "^5.1.20", |
38 | 47 | "@typescript-eslint/eslint-plugin": "^8.26.0", |
39 | 48 | "@typescript-eslint/parser": "^8.26.0", |
| 49 | + "@vitejs/plugin-react": "^4.3.4", |
40 | 50 | "babel-plugin-styled-components": "^2.0.2", |
41 | 51 | "eslint": "^9.21.0", |
42 | 52 | "eslint-config-prettier": "^10.1.1", |
|
46 | 56 | "eslint-plugin-react": "^7.37.4", |
47 | 57 | "eslint-plugin-react-hooks": "^5.2.0", |
48 | 58 | "eslint-plugin-security": "^3.0.1", |
| 59 | + "eslint-plugin-storybook": "^0.11.4", |
49 | 60 | "globals": "^16.0.0", |
50 | 61 | "husky": "^7.0.0", |
51 | 62 | "lint-staged": "^12.1.2", |
52 | | - "parcel": "^2.13.3", |
53 | 63 | "prettier": "^3.5.3", |
54 | 64 | "prettier-plugin-tailwindcss": "^0.6.11", |
55 | 65 | "process": "^0.11.10", |
| 66 | + "storybook": "^8.6.4", |
56 | 67 | "styled-components": "^5.3.3", |
57 | 68 | "tailwindcss": "^4.0.11", |
58 | | - "typescript": "^5.8.2" |
| 69 | + "typescript": "^5.8.2", |
| 70 | + "vite": "^6.2.1", |
| 71 | + "vite-plugin-svgr": "^4.3.0" |
59 | 72 | }, |
60 | 73 | "peerDependencies": { |
61 | 74 | "@tailwindcss/postcss": "^4.0.11", |
|
68 | 81 | "dependencies": { |
69 | 82 | "@datepicker-react/hooks": "^2.8.4", |
70 | 83 | "@swc/helpers": "^0.3.2", |
| 84 | + "@tailwindcss/vite": "^4.0.12", |
71 | 85 | "clsx": "^2.1.1", |
72 | 86 | "rc-slider": "^9.7.5", |
73 | 87 | "react": "^18.0.0", |
|
85 | 99 | }, |
86 | 100 | "volta": { |
87 | 101 | "node": "20.18.3", |
88 | | - "yarn": "1.22.19" |
| 102 | + "yarn": "4.7.0" |
89 | 103 | }, |
90 | | - "packageManager": "yarn@1.22.19+sha256.732620bac8b1690d507274f025f3c6cfdc3627a84d9642e38a07452cc00e0f2e" |
| 104 | + "packageManager": "yarn@4.7.0", |
| 105 | + "eslintConfig": { |
| 106 | + "extends": [ |
| 107 | + "plugin:storybook/recommended" |
| 108 | + ] |
| 109 | + } |
91 | 110 | } |
0 commit comments