-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
126 lines (126 loc) · 4.56 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": "tw-variants-ui",
"author": "Sean Kinread",
"description": "A UI library powered by Tailwind CSS and React",
"repository": {
"type": "git",
"url": "git+https://github.com/skinread/tw-variants-ui.git"
},
"version": "0.1.0",
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
"./react": {
"require": "./dist/react/index.cjs",
"import": "./dist/react/index.js"
},
"./tailwind-preset": "./dist/tailwind-preset.js",
"./themes": "./dist/themes/index.js"
},
"files": [
"dist"
],
"scripts": {
"prepare": "husky",
"dev": "storybook dev -p 6006",
"dev:test": "npm run storybook:test",
"build": "npm run bundle:react -- --clean && npm run copy:themes && npm run bundle:css",
"bundle:css": "tailwindcss -i ./src/styles/tailwind.css -o ./dist/css/tailwind.css --minify",
"bundle:react": "tsup src/components/react/index.ts --outDir dist/react --sourcemap",
"copy:themes": "cpy 'src/themes/*' 'dist/themes/' && cpy 'src/tailwind-preset.*' dist",
"check-deps": "npx npm-check-updates@latest --interactive --format group",
"format": "prettier src/**/*.{js,jsx,ts,tsx,json} --write",
"prettier": "prettier src/**/*.{js,ts,tsx} --check",
"lint": "eslint . --report-unused-disable-directives",
"lint:fix": "eslint . --fix",
"pretest": "npx playwright install --with-deps",
"test": "npm run storybook:build && npm run test:coverage",
"test:ci": "npx concurrently -k -s first -n \"SB,TEST\" -c \"auto\" \"npm:storybook:serve\" \"npm:storybook:test-ci\"",
"test:coverage": "npx concurrently -k -s first -n \"SB,TEST\" -c \"auto\" \"npm:storybook:serve\" \"npm:storybook:test-ci -- --coverage\"",
"generate:component": "plop --plopfile generator/plopfile.js",
"storybook:build": "storybook build",
"storybook:serve": "npx serve ./storybook-static -p 6007 -d -L -n",
"storybook:test": "npx wait-on tcp:6006 && test-storybook --verbose --watch",
"storybook:test-ci": "npx wait-on tcp:6007 && test-storybook --url http://localhost:6007",
"storybook:upgrade": "npx sb@latest upgrade",
"release": "npx dotenv-cli -- release-it",
"watch": "npm run bundle:react -- --watch & npm run copy:themes & npm run bundle:css"
},
"dependencies": {
"@headlessui/react": "^1.7.19",
"react-merge-refs": "^2.1.1",
"tailwind-variants": "^0.2.1"
},
"peerDependencies": {
"daisyui": "^4.0.9",
"react": ">=18.0.0",
"react-dom": ">=18.0.0",
"tailwindcss": "*",
"tw-colors": "^3.0.0"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@playwright/test": "^1.46.0",
"@storybook/addon-a11y": "^8.2.8",
"@storybook/addon-coverage": "^1.0.4",
"@storybook/addon-essentials": "^8.2.8",
"@storybook/addon-interactions": "^8.2.8",
"@storybook/addon-links": "^8.2.8",
"@storybook/addon-themes": "^8.2.8",
"@storybook/blocks": "^8.2.8",
"@storybook/manager-api": "^8.2.8",
"@storybook/react": "^8.2.8",
"@storybook/react-vite": "^8.2.8",
"@storybook/test": "^8.2.8",
"@storybook/test-runner": "^0.19.1",
"@storybook/theming": "^8.2.8",
"@storybook/web-components": "^8.2.8",
"@storybook/web-components-vite": "^8.2.8",
"@types/node": "^22.2.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.20",
"axe-playwright": "^2.0.1",
"cpy-cli": "^5.0.0",
"daisyui": "^4.12.10",
"esbuild-plugin-svgr": "^2.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.9",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-unicorn": "^55.0.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"pkg-pr-new": "^0.0.20",
"plop": "^4.0.1",
"postcss": "^8.4.41",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"release-it": "^17.6.0",
"storybook": "^8.2.8",
"storybook-dark-mode": "^4.0.2",
"tailwindcss": "^3.4.9",
"tsup": "^8.2.4",
"tw-colors": "^3.3.1",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^5.0.1"
},
"lint-staged": {
"./src/**/*.{js,jsx,ts,tsx,md,html,css,json}": [
"prettier --ignore-unknown --write"
],
"./src/**/*.{js,jsx,ts,tsx}": [
"eslint"
]
}
}