chore: rename *_deps.ts -> deps.*.ts (#206)

As per David's suggestion.
This commit is contained in:
Luca Casonato
2022-05-23 16:05:33 +02:00
committed by GitHub
parent f9f0125282
commit fd6724c050
57 changed files with 70 additions and 70 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ used to pass arbituary data to downstream (or upstream) handlers.
```ts
// routes/_middleware.ts
import { MiddlewareHandlerContext } from "../server_deps.ts";
import { MiddlewareHandlerContext } from "../deps.server.ts";
interface State {
data: string;
+4 -4
View File
@@ -22,7 +22,7 @@ Let's look at a basic route that returns a plain text string:
```tsx
// routes/plain.tsx
import { HandlerContext, Handlers } from "../server_deps.ts";
import { HandlerContext, Handlers } from "../deps.server.ts";
export const handler: Handlers = {
GET(ctx: HandlerContext) {
@@ -43,7 +43,7 @@ Now, let's render some HTML using the route component. Another example:
// routes/html.tsx
/** @jsx h */
import { h, PageProps } from "../client_deps.ts";
import { h, PageProps } from "../deps.client.ts";
export default function Page(props: PageProps) {
return <div>You are on the page '{props.url.href}'.</div>;
@@ -65,8 +65,8 @@ response after rendering the page component.
// routes/html.tsx
/** @jsx h */
import { h, PageProps } from "../client_deps.ts";
import { HandlerContext, Handlers } from "../server_deps.ts";
import { h, PageProps } from "../deps.client.ts";
import { HandlerContext, Handlers } from "../deps.server.ts";
export const handler: Handlers = {
GET(ctx: HandlerContext) {