Skip to content

Commit

Permalink
chore: remove utils-hattip (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jun 2, 2024
1 parent 83611b1 commit e5da31a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 150 deletions.
7 changes: 2 additions & 5 deletions packages/tiny-react/examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "pnpm run /^dev:/",
"dev:vite": "vite --no-clearScreen",
"dev:tsc": "tsc --watch --preserveWatchOutput",
"dev": "vite",
"build": "SERVER_ENTRY=./src/server/adapter-vercel-edge.ts pnpm run --seq /^build:/",
"build:vite": "vite build && vite build --ssr",
"build:vercel": "bash misc/vercel/build.sh",
Expand All @@ -23,10 +21,9 @@
"@hiogawa/tiny-react": "workspace:*",
"@hiogawa/unocss-preset-antd": "2.2.1-pre.7",
"@hiogawa/utils": "workspace:*",
"@hiogawa/utils-hattip": "workspace:*",
"@hiogawa/vite-import-dev-server": "^0.0.1",
"@hiogawa/vite-null-export": "^0.0.0",
"@hiogawa/vite-plugin-ssr-middleware": "^0.0.2",
"@hiogawa/vite-plugin-ssr-middleware": "^0.0.3",
"@iconify-json/ri": "^1.1.10",
"@types/express": "^4.17.18",
"@types/node": "^20.11.19",
Expand Down
7 changes: 1 addition & 6 deletions packages/tiny-react/examples/ssr/src/server/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { compose } from "@hattip/compose";
import { createLoggerHandler } from "@hiogawa/utils-hattip";
import { requestContextStorageHandler } from "./request-context";
import { ssrHandler } from "./ssr";

export function createHattipApp() {
return compose(
createLoggerHandler(),
requestContextStorageHandler(),
ssrHandler()
);
return compose(requestContextStorageHandler(), ssrHandler());
}
7 changes: 6 additions & 1 deletion packages/tiny-react/examples/ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import { themeScriptPlugin } from "@hiogawa/theme-script/dist/vite";
import { tinyReactVitePlugin } from "@hiogawa/tiny-react/vite";
import { importDevServerPlugin } from "@hiogawa/vite-import-dev-server";
import { viteNullExportPlugin } from "@hiogawa/vite-null-export";
import { vitePluginSsrMiddleware } from "@hiogawa/vite-plugin-ssr-middleware";
import {
vitePluginLogger,
vitePluginSsrMiddleware,
} from "@hiogawa/vite-plugin-ssr-middleware";
import unocss from "unocss/vite";
import { defineConfig } from "vite";

export default defineConfig((ctx) => ({
clearScreen: false,
plugins: [
unocss(),
tinyReactVitePlugin(),
Expand All @@ -15,6 +19,7 @@ export default defineConfig((ctx) => ({
viteNullExportPlugin({
serverOnly: "**/server/**",
}),
vitePluginLogger(),
vitePluginSsrMiddleware({
entry: process.env["SERVER_ENTRY"] ?? "./src/server/adapter-node.ts",
}),
Expand Down
3 changes: 0 additions & 3 deletions packages/utils-hattip/README.md

This file was deleted.

36 changes: 0 additions & 36 deletions packages/utils-hattip/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/utils-hattip/src/index.ts

This file was deleted.

50 changes: 0 additions & 50 deletions packages/utils-hattip/src/logger.test.ts

This file was deleted.

30 changes: 0 additions & 30 deletions packages/utils-hattip/src/logger.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/utils-hattip/tsconfig.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/utils-hattip/tsup.config.ts

This file was deleted.

9 changes: 2 additions & 7 deletions pnpm-lock.yaml

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

0 comments on commit e5da31a

Please sign in to comment.