Skip to content

Commit 5de0027

Browse files
committed
feat: migrate to vite
1 parent a739a3b commit 5de0027

16 files changed

Lines changed: 273 additions & 2373 deletions

.gitignore

Lines changed: 55 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7-
lerna-debug.log*
7+
pnpm-debug.log*
88
.pnpm-debug.log*
9+
lerna-debug.log*
910

10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
# Diagnostic reports
12+
# https://nodejs.org/api/report.html
1113
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1214

1315
# Runtime data
@@ -16,126 +18,81 @@ pids
1618
*.seed
1719
*.pid.lock
1820

19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
21+
# Coverage
2322
coverage
2423
*.lcov
25-
26-
# nyc test coverage
2724
.nyc_output
2825

29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
26+
# Build outputs
27+
dist
28+
dist-ssr
29+
out
30+
.next
31+
.nuxt
32+
.vuepress/dist
33+
.docusaurus
34+
.temp
35+
.cache
36+
.parcel-cache
37+
.serverless/
38+
.fusebox/
39+
.rspack-profile-*/
3740

38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
41+
# TypeScript
42+
*.tsbuildinfo
4043

41-
# Dependency directories
44+
# Dependencies
4245
node_modules/
4346
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
47+
bower_components
4648
web_modules/
4749

48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
50+
# Package manager / caches
5251
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Optional stylelint cache
58-
.stylelintcache
59-
60-
# Microbundle cache
52+
.pnpm-store
53+
.yarn/cache
54+
.yarn/unplugged
55+
.yarn/build-state.yml
56+
.yarn/install-state.gz
57+
.yarn-integrity
58+
.pnp.*
59+
.grunt
6160
.rpt2_cache/
6261
.rts2_cache_cjs/
6362
.rts2_cache_es/
6463
.rts2_cache_umd/
6564

66-
# Optional REPL history
67-
.node_repl_history
68-
69-
# Output of 'npm pack'
70-
*.tgz
71-
72-
# Yarn Integrity file
73-
.yarn-integrity
74-
75-
# dotenv environment variable files
65+
# Environment files
7666
.env
67+
.env.local
7768
.env.development.local
7869
.env.test.local
7970
.env.production.local
80-
.env.local
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
87-
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
92-
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
99-
100-
# vuepress build output
101-
.vuepress/dist
102-
103-
# vuepress v2.x temp and cache directory
104-
.temp
105-
.cache
106-
107-
# Docusaurus cache and generated files
108-
.docusaurus
109-
110-
# Serverless directories
111-
.serverless/
71+
*.local
11272

113-
# FuseBox cache
114-
.fusebox/
73+
# Compiled / binary
74+
build/Release
75+
.lock-wscript
11576

116-
# DynamoDB Local files
77+
# Misc
78+
lib-cov
79+
.node_repl_history
80+
*.tgz
11781
.dynamodb/
118-
119-
# TernJS port file
12082
.tern-port
12183

122-
# Stores VSCode versions used for testing VSCode extensions
84+
# IDE / Editor
85+
.vscode/*
86+
!.vscode/extensions.json
12387
.vscode-test
124-
125-
# yarn v2
126-
.yarn/cache
127-
.yarn/unplugged
128-
.yarn/build-state.yml
129-
.yarn/install-state.gz
130-
.pnp.*
131-
.DS_Store
132-
.pnpm-store
133-
134-
# IDE
13588
.idea
136-
137-
# Local overrides
138-
*.local
139-
140-
# Rsbuild / Rspack
141-
.rspack-profile-*/
89+
.DS_Store
90+
*.suo
91+
*.ntvs*
92+
*.njsproj
93+
*.sln
94+
*.sw?
95+
96+
# Gatsby
97+
# Uncomment if using Gatsby
98+
# public

packages/web/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Foundry</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

packages/web/package.json

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,28 @@
11
{
2-
"name": "@dhzh/foundry-web",
3-
"version": "0.0.0",
2+
"name": "web",
43
"private": true,
4+
"version": "0.0.0",
55
"type": "module",
6-
"description": "A web interface for Foundry, an AI-native local developer runtime for tools, skills, agents, and workflows.",
6+
"description": "web",
77
"scripts": {
8-
"build": "rsbuild build",
9-
"dev": "rsbuild --open",
10-
"preview": "rsbuild preview"
8+
"build": "tsc -b && vite build",
9+
"dev": "vite"
1110
},
1211
"dependencies": {
13-
"@mantine/carousel": "^9.4.1",
14-
"@mantine/charts": "^9.4.1",
15-
"@mantine/code-highlight": "^9.4.1",
16-
"@mantine/core": "^9.4.1",
17-
"@mantine/dates": "^9.4.1",
18-
"@mantine/dropzone": "^9.4.1",
19-
"@mantine/form": "^9.4.1",
20-
"@mantine/hooks": "^9.4.1",
21-
"@mantine/modals": "^9.4.1",
22-
"@mantine/notifications": "^9.4.1",
23-
"@mantine/nprogress": "^9.4.1",
24-
"@mantine/spotlight": "^9.4.1",
25-
"@mantine/tiptap": "^9.4.1",
26-
"@tiptap/extension-link": "^3.27.1",
27-
"@tiptap/pm": "^3.27.1",
28-
"@tiptap/react": "^3.27.1",
29-
"@tiptap/starter-kit": "^3.27.1",
30-
"dayjs": "^1.11.21",
31-
"embla-carousel": "^8.6.0",
32-
"embla-carousel-react": "^8.6.0",
3312
"react": "^19.2.7",
34-
"react-dom": "^19.2.7",
35-
"react-json-view": "^1.21.3",
36-
"react-router": "^8.1.0",
37-
"recharts": "^3.9.2"
13+
"react-dom": "^19.2.7"
3814
},
3915
"devDependencies": {
40-
"@rsbuild/core": "^2.1.4",
41-
"@rsbuild/plugin-react": "^2.1.0",
42-
"@rsbuild/plugin-tailwindcss": "^2.0.3",
16+
"@babel/core": "^7.29.7",
17+
"@rolldown/plugin-babel": "^0.2.3",
18+
"@types/babel__core": "^7.20.5",
4319
"@types/node": "catalog:",
4420
"@types/react": "^19.2.17",
4521
"@types/react-dom": "^19.2.3",
46-
"postcss": "^8.5.16",
47-
"postcss-load-config": "^6.0.1",
48-
"postcss-preset-mantine": "^1.18.0",
49-
"postcss-simple-vars": "^7.0.1",
50-
"tailwindcss": "catalog:",
51-
"typescript": "catalog:"
22+
"@vitejs/plugin-react": "^6.0.3",
23+
"babel-plugin-react-compiler": "^1.0.0",
24+
"globals": "^17.7.0",
25+
"typescript": "catalog:",
26+
"vite": "^8.1.1"
5227
}
5328
}

packages/web/postcss.config.mjs

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/web/rsbuild.config.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/web/src/components/json-view.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/web/src/env.d.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/web/src/index.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/web/src/index.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/web/src/layout.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)