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
+2 -2
View File
@@ -61,7 +61,7 @@ Deno.test({
"name": tmpDirName,
"contents": [
{ "type": "file", "name": "README.md" },
{ "type": "file", "name": "client_deps.ts" },
{ "type": "file", "name": "deps.client.ts" },
{ "type": "file", "name": "fresh.gen.ts" },
{
"type": "directory",
@@ -86,7 +86,7 @@ Deno.test({
{ "type": "file", "name": "index.tsx" },
],
},
{ "type": "file", "name": "server_deps.ts" },
{ "type": "file", "name": "deps.server.ts" },
{
"type": "directory",
"name": "static",
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h } from "../client_deps.ts";
import { h } from "../deps.client.ts";
export default function Test(props: { message: string }) {
return (
+1 -1
View File
@@ -1,4 +1,4 @@
import { start } from "./server_deps.ts";
import { start } from "./deps.server.ts";
import routes from "./fresh.gen.ts";
await start(routes);
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h } from "../client_deps.ts";
import { h } from "../deps.client.ts";
interface Props {
params: Record<string, string | string[]>;
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, UnknownPageProps } from "../client_deps.ts";
import { h, UnknownPageProps } from "../deps.client.ts";
export default function NotFoundPage({ url }: UnknownPageProps) {
return <p>404 not found: {url.pathname}</p>;
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { ErrorPageProps, h } from "../client_deps.ts";
import { ErrorPageProps, h } from "../deps.client.ts";
export default function Error500Page({ error }: ErrorPageProps) {
return <p>500 internal error: {(error as Error).message}</p>;
+1 -1
View File
@@ -1,7 +1,7 @@
/** @jsx h */
/** @jsxFrag Fragment */
import { AppProps, Fragment, h, Head } from "../client_deps.ts";
import { AppProps, Fragment, h, Head } from "../deps.client.ts";
export default function App(props: AppProps) {
return (
+1 -1
View File
@@ -1,4 +1,4 @@
import { MiddlewareHandlerContext } from "../server_deps.ts";
import { MiddlewareHandlerContext } from "../deps.server.ts";
export async function handler(_req: Request, ctx: MiddlewareHandlerContext) {
ctx.state.root = "root_mw";
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { asset, h } from "../../client_deps.ts";
import { asset, h } from "../../deps.client.ts";
import Test from "../../islands/Test.tsx";
export default function Home() {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, PageProps, RouteConfig } from "../../client_deps.ts";
import { h, PageProps, RouteConfig } from "../../deps.client.ts";
export default function Page(props: PageProps) {
return <div>Book {props.params.id}</div>;
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, IS_BROWSER } from "../client_deps.ts";
import { h, IS_BROWSER } from "../deps.client.ts";
import Test from "../islands/Test.tsx";
export default function Home() {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h } from "../client_deps.ts";
import { h } from "../deps.client.ts";
import { HandlerContext } from "../../../server.ts";
export default function Page() {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, PageProps } from "../client_deps.ts";
import { h, PageProps } from "../deps.client.ts";
import { HandlerContext, Handlers } from "../../../server.ts";
interface Data extends Record<string, unknown> {
@@ -1,4 +1,4 @@
import { MiddlewareHandlerContext } from "../../server_deps.ts";
import { MiddlewareHandlerContext } from "../../deps.server.ts";
export async function handler(_req: Request, ctx: MiddlewareHandlerContext) {
ctx.state.layer1 = "layer1_mw";
@@ -1,4 +1,4 @@
import { MiddlewareHandlerContext } from "../../../server_deps.ts";
import { MiddlewareHandlerContext } from "../../../deps.server.ts";
interface State {
root: string;
@@ -1,4 +1,4 @@
import { MiddlewareHandlerContext } from "../../../../server_deps.ts";
import { MiddlewareHandlerContext } from "../../../../deps.server.ts";
export async function handler(_req: Request, ctx: MiddlewareHandlerContext) {
ctx.state.layer3 = "layer3_mw";
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, RouteConfig } from "../client_deps.ts";
import { h, RouteConfig } from "../deps.client.ts";
import { HandlerContext } from "../../../server.ts";
export const handler = {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, PageProps } from "../../client_deps.ts";
import { h, PageProps } from "../../deps.client.ts";
export default function Home(props: PageProps) {
return <div>{JSON.stringify(props)}</div>;
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { asset, h } from "../client_deps.ts";
import { asset, h } from "../deps.client.ts";
export default function StaticPage() {
return (
+1 -1
View File
@@ -1,6 +1,6 @@
/** @jsx h */
import { h, PageProps, RouteConfig } from "../client_deps.ts";
import { h, PageProps, RouteConfig } from "../deps.client.ts";
export default function WildcardPage({ params }: PageProps) {
if (typeof params.path === "string") {
+1 -1
View File
@@ -4,7 +4,7 @@
/// <reference lib="deno.ns" />
/// <reference lib="deno.unstable" />
import { start } from "./server_deps.ts";
import { start } from "./deps.server.ts";
import manifest from "./fresh.gen.ts";
await start(manifest);
+1 -1
View File
@@ -1,5 +1,5 @@
/** @jsx h */
import { h } from "../client_deps.ts";
import { h } from "../deps.client.ts";
export default function Home(): null {
throw new Error("boom!");