Skip to content

Commit 7849f6b

Browse files
committed
Run CI sandbox with Vite
1 parent e6fb06a commit 7849f6b

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

ci/.codesandbox/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
},
1717
"dev": {
1818
"name": "dev",
19-
"command": "bun start",
19+
"command": "bun run dev",
2020
"runAtStart": true,
2121
"preview": {
22-
"port": 3000
22+
"port": 5173
2323
}
2424
}
2525
}

ci/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
"description": "numeric-quantity Test Page",
55
"main": "index.html",
66
"scripts": {
7-
"start": "bun index.html",
8-
"build": "bun build index.html"
7+
"build": "tsc && vite build",
8+
"dev": "vite",
9+
"preview": "vite preview"
910
},
1011
"dependencies": {
1112
"numeric-quantity": "^2.0.1"
1213
},
1314
"devDependencies": {
14-
"typescript": "^5.8.3"
15+
"@vitejs/plugin-react": "^4.3.4",
16+
"typescript": "^5.8.3",
17+
"vite": "^6"
1518
}
1619
}

ci/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"sourceMap": true,
88
"allowJs": true,
99
"lib": ["ES2015", "DOM"],
10-
"moduleResolution": "node"
10+
"moduleResolution": "node",
11+
"noEmit": true
1112
}
1213
}

ci/vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import react from '@vitejs/plugin-react';
2+
import { defineConfig } from 'vite';
3+
4+
export default defineConfig({
5+
plugins: [react()],
6+
server: {
7+
port: 5173,
8+
},
9+
});

0 commit comments

Comments
 (0)