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

Commit

Permalink
chore: port demo (#1)
Browse files Browse the repository at this point in the history
* wip: css + sidebar

* chore: lint

* chore: remove old

* feat: getContacts

* wip: add edit page

* chore: root page

* wip: search

* chore: reduce data

* chore: use `cache.sessionize.com`

* chore: use `LinkForm` and `ActionContext.revalidate`

* wip: search + delete + edit

* wip: error page

* wip: NavLink

* chore: avatar

* wip: favorite

* fix: favorite revalidate

* wip: BackButton

* chore: workaround param encoding

* chore: build

* chore: tweak link

* chore: readme

* chore: readme

* chore: comment

* feat: GlobalPendingOverlay

* chore: DEBUG_SLOW_MO

* chore: comment
  • Loading branch information
hi-ogawa committed Apr 7, 2024
1 parent f48e467 commit e7d6d35
Show file tree
Hide file tree
Showing 25 changed files with 947 additions and 134 deletions.
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.

0 comments on commit e7d6d35

Please sign in to comment.