Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 2a2be21

Browse files
committed
refactor: build playground
1 parent a1f7f7c commit 2a2be21

File tree

44 files changed

+381
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+381
-117
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ website/.vite-ssg-temp
107107
.npmrc
108108

109109
# Cypress screenshots generated
110-
cypress/screenshots
110+
cypress/screenshots
111+
playground/build/components.json

components.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,11 @@ declare module 'vue' {
170170

171171
/* Component custom props types for JSX and TSX auto complete */
172172
export interface ComponentCustomProps
173-
extends JsxComponentCustomProps,
174-
ChakraProps {
173+
extends JsxComponentCustomProps, ChakraProps {
175174
onClick?: () => any
176175
vSlots?: {
177176
[eleName: string]: JSX.Element
178-
},
177+
}
179178
value?: unknown
180179
}
181180
}

examples/vue-ssr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@chakra-ui/vue-system": "^0.1.0-alpha.4",
1212
"@vueuse/head": "^0.6.0",
13-
"vite-plugin-components": "^0.12.2",
13+
"unplugin-vue-components": "^0.14.0",
1414
"vite-plugin-pages": "^0.14.9",
1515
"vite-ssr": "^0.10.6",
1616
"vue": "3",

examples/vue-ssr/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
22
import vue from '@vitejs/plugin-vue'
33
import viteSSR from 'vite-ssr/plugin.js'
44
import Pages from 'vite-plugin-pages'
5-
import Components from 'vite-plugin-components'
5+
import Components from 'unplugin-vue-components'
66
import { componentResolver } from '@chakra-ui/vue-auto-import'
77

88
// https://vitejs.dev/config/

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"workspaces": [
99
"packages/*",
1010
"tooling/*",
11-
"website"
11+
"website",
12+
"playground"
1213
],
1314
"scripts": {
1415
"postinstall": "preconstruct dev",
@@ -22,8 +23,8 @@
2223
"bootstrap": "yarn run lerna bootstrap",
2324
"scaffold": "hygen generator",
2425
"release": "yarn changeset publish",
25-
"playground:dev": "NODE_ENV=development vite serve playground --config ./vite.config.ts --open",
26-
"playground:build": "yarn install && yarn build && NODE_ENV=production vite build playground --config ./vite.config.ts",
26+
"playground:dev": "NODE_ENV=development yarn pkg chidori-playground dev",
27+
"playground:build": "yarn install && yarn build && NODE_ENV=production yarn pkg chidori-playground build",
2728
"cy:open": "cypress open-ct",
2829
"cy:run": "cypress run-ct --quiet",
2930
"test:component": "yarn cy:run",
@@ -82,7 +83,7 @@
8283
"@types/uuid": "^8.3.1",
8384
"@typescript-eslint/eslint-plugin": "^2.34.0",
8485
"@typescript-eslint/parser": "4.0.1",
85-
"@vitejs/plugin-vue": "^1.2.1",
86+
"@vitejs/plugin-vue": "^1.9.3",
8687
"@vitejs/plugin-vue-jsx": "^1.1.6",
8788
"@vue/babel-plugin-jsx": "^1.0.3",
8889
"@vue/compiler-sfc": "^3.1.4",
@@ -102,7 +103,7 @@
102103
"change-case": "^4.1.1",
103104
"chokidar": "^3.5.1",
104105
"concurrently": "^5.3.0",
105-
"consola": "^2.15.0",
106+
"consola": "^2.15.3",
106107
"cross-env": "^7.0.2",
107108
"css-get-unit": "^1.0.1",
108109
"csstype": "^3.0.5",
@@ -147,15 +148,15 @@
147148
"tinycolor2": "^1.4.2",
148149
"ts-jest": "^26.5.0",
149150
"ts-node": "^9.0.0",
150-
"typescript": "^4.1.3",
151-
"vite": "^2.5.10",
151+
"typescript": "^4.4.3",
152152
"unplugin-vue-components": "^0.14.0",
153+
"vite": "^2.6.13",
153154
"vite-plugin-mdx-vue": "^1.1.3",
154155
"vite-plugin-pages": "^0.9.2",
155156
"vite-plugin-vue-layouts": "^0.3.1",
156157
"vite-ssg": "^0.11.4",
157158
"vitepress": "^0.12.0",
158-
"vue": "^3.1.4",
159+
"vue": "^3.2.21",
159160
"vue-jest": "^5.0.0-alpha.7",
160161
"vue-prism-editor": "^2.0.0-alpha.2",
161162
"vue-router": "^4.0.10",

packages/c-accordion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"access": "public"
3030
},
3131
"devDependencies": {
32-
"vue": "^3.1.4"
32+
"vue": "^3.2.21"
3333
}
3434
}

packages/c-alert/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"access": "public"
3232
},
3333
"devDependencies": {
34-
"vue": "^3.1.4"
34+
"vue": "^3.2.21"
3535
}
3636
}

packages/c-breadcrumb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"vue": "^3.1.4"
3838
},
3939
"devDependencies": {
40-
"vue": "^3.1.4"
40+
"vue": "^3.2.21"
4141
}
4242
}

packages/c-button/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"access": "public"
3434
},
3535
"devDependencies": {
36-
"vue": "^3.1.4"
36+
"vue": "^3.2.21"
3737
}
3838
}

packages/c-close-button/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@chakra-ui/vue-utils": "0.1.0-alpha.5"
3636
},
3737
"devDependencies": {
38-
"vue": "^3.1.4"
38+
"vue": "^3.2.21"
3939
},
4040
"peerDependencies": {
4141
"vue": "^3.1.4"

0 commit comments

Comments
 (0)