Skip to content

Commit 7570f24

Browse files
authored
Merge pull request #8 from dev-five-git/vite-plugin
Implement vite
2 parents 52986dc + 7209d70 commit 7570f24

File tree

86 files changed

+2521
-849
lines changed

Some content is hidden

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

86 files changed

+2521
-849
lines changed

.changeset/config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": [
11-
"next-example"
11+
"next-example",
12+
"vite-example",
13+
"vite-lib-example"
1214
]
1315
}

.changeset/curly-mice-promise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/wasm": patch
3+
---
4+
5+
Support transpiled code

.changeset/cyan-tigers-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/vite-plugin": minor
3+
---
4+
5+
Implement vite plugin

.changeset/mean-socks-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/webpack-plugin": patch
3+
---
4+
5+
Fix watch mode issue

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ node_modules
55
target
66
*.*.timestamp-*
77
coverage
8+
.df
9+
build_rs_cov.profraw
10+
tsconfig.tsbuildinfo

Cargo.lock

Lines changed: 188 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/vite-lib/devup.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"theme": {
3+
"colors": {
4+
"default": {
5+
"text": "purple"
6+
},
7+
"dark": {
8+
"text": "#fff"
9+
}
10+
},
11+
"typography": {
12+
"bold": {
13+
"fontFamily": "Freesentation",
14+
"fontSize": "14px",
15+
"fontWeight": "800",
16+
"lineHeight": "120%",
17+
"letterSpacing": "-0.28px"
18+
},
19+
"header": [
20+
{
21+
"fontFamily": "Freesentation",
22+
"fontSize": "12px",
23+
"fontWeight": "600",
24+
"lineHeight": "120%",
25+
"letterSpacing": "-0.24px"
26+
},
27+
null,
28+
null,
29+
null,
30+
{
31+
"fontFamily": "Freesentation",
32+
"fontSize": "16px",
33+
"fontWeight": "600",
34+
"lineHeight": "120%",
35+
"letterSpacing": "-0.32px"
36+
}
37+
]
38+
}
39+
}
40+
}

apps/vite-lib/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "vite-lib-example",
3+
"version": "0.1.0",
4+
"type": "module",
5+
"private": true,
6+
"scripts": {
7+
"build": "vite build",
8+
"lint": "tsc && eslint"
9+
},
10+
"dependencies": {
11+
"react": "^19.0.0",
12+
"@devup-ui/react": "workspace:*",
13+
"vite": "^6.0.7"
14+
},
15+
"devDependencies": {
16+
"vite-plugin-dts": "^4.5.0",
17+
"@devup-ui/vite-plugin": "workspace:*",
18+
"@vitejs/plugin-react": "^4.3.4",
19+
"typescript": "^5",
20+
"@types/node": "^20",
21+
"@types/react": "^19"
22+
}
23+
}

apps/vite-lib/src/index.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Box, Flex, Text } from '@devup-ui/react'
2+
3+
export function Lib() {
4+
return (
5+
<div>
6+
<Box
7+
_hover={{
8+
bg: 'blue',
9+
}}
10+
bg="$text"
11+
color="red"
12+
>
13+
hello
14+
</Box>
15+
<Text typography="header">typo</Text>
16+
<Flex as="section" mt={2}>
17+
section
18+
</Flex>
19+
</div>
20+
)
21+
}

0 commit comments

Comments
 (0)