-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hono のクライアントの補完を高速化 #19
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "scrap", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"dev": "concurrently -r -k yarn:watch:server-types vite", | ||
"build": "$npm_execpath run build:client && $npm_execpath run build:api", | ||
"build:client": "vite build --mode client", | ||
"build:api": "vite build", | ||
|
@@ -11,7 +11,8 @@ | |
"migrate": "drizzle-kit generate && wrangler d1 migrations apply scrap", | ||
"migrate:remote": "drizzle-kit generate && wrangler d1 migrations apply scrap --remote ", | ||
"lint": "biome check", | ||
"lint:fix": "biome check --fix" | ||
"lint:fix": "biome check --fix", | ||
"watch:server-types": "tsc -b -w ./src/server" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ソースコードを更新したら再コンパイルが必要なので、 |
||
}, | ||
"dependencies": { | ||
"@hono/zod-validator": "^0.4.1", | ||
|
@@ -52,10 +53,12 @@ | |
"@types/react": "^18.3.11", | ||
"@types/react-dom": "^18.3.1", | ||
"autoprefixer": "^10.4.20", | ||
"concurrently": "^9.1.0", | ||
"drizzle-kit": "^0.26.2", | ||
"postcss": "^8.4.47", | ||
"postcss-preset-mantine": "^1.17.0", | ||
"postcss-simple-vars": "^7.0.1", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.2.12", | ||
"wrangler": "^3.57.2" | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": ["../../tsconfig.base.json"], | ||
"include": ["**/*", "../common/**/*", "../db/**/*", "../model/**/*"], | ||
"compilerOptions": { | ||
"composite": true, | ||
"declaration": true, | ||
Comment on lines
+5
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. project reference の設定に必須です |
||
"declarationMap": true, | ||
"emitDeclarationOnly": true, | ||
"outDir": "./build/types", | ||
"rootDir": "../" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. サーバーのコードが |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"strict": true, | ||
"lib": ["ESNext", "DOM", "DOM.Iterable"], | ||
"types": ["@cloudflare/workers-types", "vite/client"], | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "react", | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
}, | ||
"skipLibCheck": true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 依存パッケージで型エラーが起きたりするので、チェックを無効化 |
||
"noUncheckedIndexedAccess": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
"extends": ["./tsconfig.base.json"], | ||
"exclude": ["./src/server"], | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"strict": true, | ||
"lib": ["ESNext", "DOM", "DOM.Iterable"], | ||
"types": ["@cloudflare/workers-types", "vite/client"], | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "react", | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
}, | ||
"noUncheckedIndexedAccess": true | ||
} | ||
"disableSourceOfProjectReferenceRedirect": true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. project reference とこのオプションを有効化すると、型情報はコンパイルした 詳しくは以下の PR のコメントを参照。 |
||
}, | ||
"references": [ | ||
{ | ||
"path": "./src/server" | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-r, --raw
は余計な prefix などを付けない、-k, --kill-others
はどれかが終了したら全て終了させる。