Skip to content

Commit 6c1b0cc

Browse files
committed
feat(preview): add Vite preview server and update configuration
1 parent 1f480e3 commit 6c1b0cc

12 files changed

+4061
-5
lines changed

bun.lock

+166-2
Large diffs are not rendered by default.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"release:alpha": "standard-version -a --prerelease alpha --skip.changelog",
5353
"release:beta": "standard-version -a --prerelease beta --skip.changelog",
5454
"release:pub": "git push --follow-tags origin main",
55-
"copy:dist": "bun run build && bun tools/copy-dist.js"
55+
"copy:dist": "bun run build && bun tools/copy-dist.js",
56+
"preview": "bun run preview/index.tsx"
5657
},
5758
"lint-staged": {
5859
"src/**/*.{ts,tsx}": [
@@ -124,6 +125,7 @@
124125
"@types/lodash": "^4.17.13",
125126
"@types/react": "^18.0.0 || ^19.0.0",
126127
"@types/react-dom": "^18.0.0 || ^19.0.0",
128+
"@vitejs/plugin-react": "^4.3.4",
127129
"autoprefixer": "^10.4.20",
128130
"eslint-plugin-import-x": "^4.3.1",
129131
"eslint-plugin-prettier": "^5.2.1",
@@ -144,7 +146,8 @@
144146
"ts-add-js-extension": "^1.6.4",
145147
"tsc-alias": "^1.8.10",
146148
"tsc-files": "^1.1.4",
147-
"typescript-eslint": "^8.8.1"
149+
"typescript-eslint": "^8.8.1",
150+
"vite": "^6.2.2"
148151
},
149152
"license": "LGPL-3.0",
150153
"homepage": "https://inverter.network",

preview-temp/input.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
/* Import project styles */
3+
@import '../src/styles/global.css';
4+
5+
/* Add preview-only styles */
6+
body {
7+
padding: 2rem;
8+
}
9+

0 commit comments

Comments
 (0)