Skip to content

Commit a3a86f3

Browse files
authored
chore(fullstack): standalone examples (#1180)
1 parent 6ef9739 commit a3a86f3

File tree

21 files changed

+175
-49
lines changed

21 files changed

+175
-49
lines changed

packages/fullstack/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ export default defineConfig({
130130

131131
See [./examples](./examples) for concrete usages.
132132

133+
| Example | Playground |
134+
| --- | --- |
135+
| [Basic](./examples/basic/) | [stackblitz](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/fullstack/examples/basic) |
136+
| [React Router](./examples/react-router/) | [stackblitz](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/fullstack/examples/react-router) |
137+
| [Vue Router](./examples/vue-router/) | [stackblitz](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/fullstack/examples/vue-router) |
138+
| [Nitro](https://github.com/hi-ogawa/nitro-vite-examples/tree/10-02-feat_add_vue-router-ssr_example/examples/vue-router-ssr) | [stackblitz](https://stackblitz.com/github/hi-ogawa/nitro-vite-examples/tree/10-02-feat_add_vue-router-ssr_example/examples/vue-router-ssr) |
139+
| [Cloudflare](./examples/cloudflare/) | - |
140+
141+
133142
## Feedback
134143

135144
Feedback is appreciated! I'm especially curious about opinions from framework authors, who have likely implemented own solutions without such abstract API. For example,
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
.nitro
2-
.output
1+
node_modules
2+
dist
3+
*.tsbuildinfo
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Basic
2+
3+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/fullstack/examples/basic)

packages/fullstack/examples/basic/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@hiogawa/vite-plugin-fullstack": "latest",
1212
"@types/react": "^19.1.8",
1313
"@types/react-dom": "^19.1.6",
14+
"@vitejs/plugin-react": "latest",
1415
"react": "^19.1.0",
1516
"react-dom": "^19.1.0",
1617
"srvx": "^0.8.7",
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
{
2-
"extends": "../../../../tsconfig.base.json",
32
"include": ["src", "*.ts"],
43
"compilerOptions": {
5-
"types": ["vite/client", "@hiogawa/vite-plugin-fullstack/types"],
6-
"jsx": "react-jsx"
4+
"jsx": "react-jsx",
5+
"erasableSyntaxOnly": true,
6+
"allowImportingTsExtensions": true,
7+
"strict": true,
8+
"noUnusedLocals": true,
9+
"noUnusedParameters": true,
10+
"skipLibCheck": true,
11+
"verbatimModuleSyntax": true,
12+
"noEmit": true,
13+
"moduleResolution": "Bundler",
14+
"module": "ESNext",
15+
"target": "ESNext",
16+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
17+
"types": ["vite/client", "@hiogawa/vite-plugin-fullstack/types"]
718
}
819
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.nitro
2-
.output
1+
node_modules
2+
dist
3+
*.tsbuildinfop
4+
.wrangler

packages/fullstack/examples/cloudflare/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@hiogawa/vite-plugin-fullstack": "latest",
1313
"@types/react": "^19.1.8",
1414
"@types/react-dom": "^19.1.6",
15+
"@vitejs/plugin-react": "latest",
1516
"react": "^19.1.0",
1617
"react-dom": "^19.1.0",
1718
"vite": "^7.1.5",
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
{
2-
"extends": "../../../../tsconfig.base.json",
32
"include": ["src", "*.ts"],
43
"compilerOptions": {
5-
"types": ["vite/client", "@hiogawa/vite-plugin-fullstack/types"],
6-
"jsx": "react-jsx"
4+
"jsx": "react-jsx",
5+
"erasableSyntaxOnly": true,
6+
"allowImportingTsExtensions": true,
7+
"strict": true,
8+
"noUnusedLocals": true,
9+
"noUnusedParameters": true,
10+
"skipLibCheck": true,
11+
"verbatimModuleSyntax": true,
12+
"noEmit": true,
13+
"moduleResolution": "Bundler",
14+
"module": "ESNext",
15+
"target": "ESNext",
16+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
17+
"types": ["vite/client", "@hiogawa/vite-plugin-fullstack/types"]
718
}
819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
.nitro
2-
.output
1+
node_modules
2+
dist
3+
*.tsbuildinfo

packages/fullstack/examples/island/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
},
1010
"devDependencies": {
1111
"@hiogawa/vite-plugin-fullstack": "latest",
12-
"srvx": "^0.8.7"
12+
"@types/react": "^19.1.8",
13+
"@types/react-dom": "^19.1.6",
14+
"@vitejs/plugin-react": "latest",
15+
"react": "^19.1.0",
16+
"react-dom": "^19.1.0",
17+
"srvx": "^0.8.7",
18+
"vite": "^7.1.5"
1319
}
1420
}

0 commit comments

Comments
 (0)