Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

chore: port demo #1

Merged
merged 27 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pnpm-lock.yaml
node_modules
dist
.vercel
.wrangler
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# react-server-demo-remix-tutorial (wip)
# react-server-demo-remix-tutorial

[`@hiogawa/react-server`](https://github.com/hi-ogawa/vite-plugins/tree/main/packages/react-server)
port of
[Remix Tutorial](https://github.com/remix-run/remix/blob/b07921efd5e8eed98e2996749852777c71bc3e50/docs/start/tutorial.md)
adaptation of
[Remix Tutorial Demo](https://github.com/remix-run/remix/blob/b07921efd5e8eed98e2996749852777c71bc3e50/docs/start/tutorial.md)

- https://react-server-demo-remix-tutorial.hiro18181.workers.dev
- [Try it on Stackblitz](https://stackblitz.com/https://github.com/hi-ogawa/react-server-demo-remix-tutorial)

```sh
# development
Expand All @@ -14,7 +17,7 @@ pnpm build
pnpm preview

# deploy cloudflare workers
npm i -D wrangler
pnpm i -D wrangler
pnpm cf-build
pnpm cf-preview
pnpm cf-release
Expand Down
2 changes: 1 addition & 1 deletion misc/cloudflare-workers/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "react-server-starter"
name = "react-server-demo-remix-tutorial"

main = "dist/server/index.js"
assets = "dist/client"
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,30 @@
"dev": "vite dev",
"build": "vite build && vite build --ssr",
"preview": "vite preview",
"tsc": "tsc -b",
"tsc-dev": "pnpm tsc --watch --preserveWatchOutput",
"lint": "prettier -w --cache .",
"lint-check": "prettier -c --cache .",
"cf-build": "SSR_ENTRY=/src/adapters/cloudflare-workers.ts pnpm build && bash misc/cloudflare-workers/build.sh",
"cf-preview": "cd misc/cloudflare-workers && wrangler dev",
"cf-release": "cd misc/cloudflare-workers && wrangler deploy"
},
"dependencies": {
"@hiogawa/react-server": "latest",
"@hiogawa/react-server": "0.1.15",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react-server-dom-webpack": "18.3.0-canary-14898b6a9-20240318"
},
"devDependencies": {
"@hattip/adapter-node": "^0.0.44",
"@hiogawa/utils": "1.6.4-pre.2",
"@hiogawa/vite-plugin-ssr-middleware": "latest",
"@types/react": "18.2.66",
"@types/react-dom": "18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"esbuild": "^0.20.2",
"prettier": "^3.2.5",
"typescript": "^5.4.4",
"vite": "latest"
}
}
47 changes: 38 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified public/favicon.ico
Binary file not shown.