diff --git a/docs/concepts/middleware.md b/docs/concepts/middleware.md
index 028ec329..196d64e3 100644
--- a/docs/concepts/middleware.md
+++ b/docs/concepts/middleware.md
@@ -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;
diff --git a/docs/concepts/routes.md b/docs/concepts/routes.md
index de0d56d1..fb54c0bf 100644
--- a/docs/concepts/routes.md
+++ b/docs/concepts/routes.md
@@ -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
You are on the page '{props.url.href}'.
;
@@ -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) {
diff --git a/docs/getting-started/adding-interactivity.md b/docs/getting-started/adding-interactivity.md
index f0491ebc..ac07edbc 100644
--- a/docs/getting-started/adding-interactivity.md
+++ b/docs/getting-started/adding-interactivity.md
@@ -31,7 +31,7 @@ Here is an example of an island component that counts down to a specific time.
// islands/Countdown.tsx
/** @jsx h */
-import { h, useEffect, useMemo, useState } from "../client_deps.ts";
+import { h, useEffect, useMemo, useState } from "../deps.client.ts";
const timeFmt = new Intl.RelativeTimeFormat("en-US");
@@ -73,7 +73,7 @@ client with the correct props:
// routes/countdown.tsx
/** @jsx h */
-import { h } from "../client_deps.ts";
+import { h } from "../deps.client.ts";
import { Countdown } from "../islands/Countdown.tsx";
export default function Page() {
diff --git a/docs/getting-started/create-a-project.md b/docs/getting-started/create-a-project.md
index 5f7a9b91..e0a401e3 100644
--- a/docs/getting-started/create-a-project.md
+++ b/docs/getting-started/create-a-project.md
@@ -29,11 +29,11 @@ files, only two are strictly necessary for a fresh project:
In addition to these two files, two other files are created that manage
dependencies:
-- **`client_deps.ts`**: This file contains dependencies that you need on the
+- **`deps.client.ts`**: This file contains dependencies that you need on the
client, and possibly also on the server. It should be assumed that all of the
dependencies referenced by this file will be shipped to the client. By
default, it just re-exports the `fresh` runtime.
-- **`server_deps.ts`**: This file contains dependencies that are only used on
+- **`deps.server.ts`**: This file contains dependencies that are only used on
the server. These are often things like database drivers, API clients, or
other code that should only be executed on the server. This file should never
be referenced by modules that might be shipped to the client. By default this
diff --git a/docs/getting-started/create-a-route.md b/docs/getting-started/create-a-route.md
index e8b8f187..809c09f6 100644
--- a/docs/getting-started/create-a-route.md
+++ b/docs/getting-started/create-a-route.md
@@ -38,7 +38,7 @@ This is done with JSX.
// routes/about.tsx
/** @jsx h */
-import { h } from "../client_deps.ts";
+import { h } from "../deps.client.ts";
export default function AboutPage() {
return (
diff --git a/docs/getting-started/custom-handlers.md b/docs/getting-started/custom-handlers.md
index 2d6bb1cf..fc946bb7 100644
--- a/docs/getting-started/custom-handlers.md
+++ b/docs/getting-started/custom-handlers.md
@@ -31,7 +31,7 @@ then adds a custom header to the response before returning it:
// routes/about.tsx
/** @jsx h */
-import { h, Handlers } from "../client_deps.ts";
+import { h, Handlers } from "../deps.client.ts";
export const handler: Handlers = {
GET(req, ctx) {
@@ -58,7 +58,7 @@ response:
```ts
// routes/api/random-uuid.ts
-import { Handlers } from "../client_deps.ts";
+import { Handlers } from "../deps.client.ts";
export const handler: Handlers = {
GET(req) {
diff --git a/docs/getting-started/dynamic-routes.md b/docs/getting-started/dynamic-routes.md
index ad8153d7..97293021 100644
--- a/docs/getting-started/dynamic-routes.md
+++ b/docs/getting-started/dynamic-routes.md
@@ -28,7 +28,7 @@ as arguments in it's `props` object though.
// routes/greet/[name].tsx
/** @jsx h */
-import { h, PageProps } from "../../client_deps.ts";
+import { h, PageProps } from "../../deps.client.ts";
export default function AboutPage(props: PageProps) {
const { name } = props.params;
diff --git a/docs/getting-started/fetching-data.md b/docs/getting-started/fetching-data.md
index aaf0a7a1..cda87c7e 100644
--- a/docs/getting-started/fetching-data.md
+++ b/docs/getting-started/fetching-data.md
@@ -24,8 +24,8 @@ renders it in a page component.
// routes/github/[username].tsx
/** @jsx h */
-import { h, PageProps } from "../../client_deps.ts";
-import { Handlers } from "../../server_deps.ts";
+import { h, PageProps } from "../../deps.client.ts";
+import { Handlers } from "../../deps.server.ts";
interface User {
login: string;
diff --git a/docs/getting-started/form-submissions.md b/docs/getting-started/form-submissions.md
index f78c8476..7b05b94b 100644
--- a/docs/getting-started/form-submissions.md
+++ b/docs/getting-started/form-submissions.md
@@ -33,8 +33,8 @@ server side:
// routes/search.tsx
/** @jsx h */
-import { h, PageProps } from "../../client_deps.ts";
-import { Handlers } from "../../server_deps.ts";
+import { h, PageProps } from "../../deps.client.ts";
+import { Handlers } from "../../deps.server.ts";
const NAMES = ["Alice", "Bob", "Charlie", "Dave", "Eve", "Frank"];
diff --git a/docs/project-structure.md b/docs/project-structure.md
index 60a12f2e..01be36c4 100644
--- a/docs/project-structure.md
+++ b/docs/project-structure.md
@@ -17,8 +17,8 @@ your application. All routes can act as both API endpoints and dynamic HTML
pages. More info about how the `routes` subdirectory works can be found on the
[file system routing](./file-system-routing.md) page.
-Finally there is a `client_deps.ts` and `server_deps.ts`. These files are the
-central location for all external imports. The `client_deps.ts` file is used for
+Finally there is a `deps.client.ts` and `deps.server.ts`. These files are the
+central location for all external imports. The `deps.client.ts` file is used for
runtime dependencies (ones that are used both in routes and islands), and the
-`server_deps.ts` file is used for server only dependencies (for example ones
+`deps.server.ts` file is used for server only dependencies (for example ones
used in API routes or middleware).
diff --git a/examples/counter/client_deps.ts b/examples/counter/deps.client.ts
similarity index 100%
rename from examples/counter/client_deps.ts
rename to examples/counter/deps.client.ts
diff --git a/examples/counter/server_deps.ts b/examples/counter/deps.server.ts
similarity index 100%
rename from examples/counter/server_deps.ts
rename to examples/counter/deps.server.ts
diff --git a/examples/counter/islands/Counter.tsx b/examples/counter/islands/Counter.tsx
index cb298145..41f19e26 100644
--- a/examples/counter/islands/Counter.tsx
+++ b/examples/counter/islands/Counter.tsx
@@ -1,5 +1,5 @@
/** @jsx h */
-import { h, IS_BROWSER, useState } from "../client_deps.ts";
+import { h, IS_BROWSER, useState } from "../deps.client.ts";
interface CounterProps {
start: number;
diff --git a/examples/counter/main.ts b/examples/counter/main.ts
index 5886c41c..7652910e 100644
--- a/examples/counter/main.ts
+++ b/examples/counter/main.ts
@@ -4,7 +4,7 @@
///
///
-import { start } from "./server_deps.ts";
+import { start } from "./deps.server.ts";
import manifest from "./fresh.gen.ts";
await start(manifest);
diff --git a/examples/counter/routes/index.tsx b/examples/counter/routes/index.tsx
index 39f5ec19..43a8cd2b 100644
--- a/examples/counter/routes/index.tsx
+++ b/examples/counter/routes/index.tsx
@@ -1,5 +1,5 @@
/** @jsx h */
-import { h } from "../client_deps.ts";
+import { h } from "../deps.client.ts";
import Counter from "../islands/Counter.tsx";
export default function Home() {
diff --git a/src/cli/init.ts b/src/cli/init.ts
index cf361ceb..84add413 100644
--- a/src/cli/init.ts
+++ b/src/cli/init.ts
@@ -66,19 +66,19 @@ async function init(directory: string) {
await Deno.mkdir(join(directory, "islands"), { recursive: true });
await Deno.mkdir(join(directory, "static"), { recursive: true });
- const CLIENT_DEPS_TS = `export * from "${new URL(
+ const DEPS_CLIENT_TS = `export * from "${new URL(
"../../runtime.ts",
import.meta.url,
)}";\n`;
- await Deno.writeTextFile(join(directory, "client_deps.ts"), CLIENT_DEPS_TS);
- const SERVER_DEPS_TS = `export * from "${new URL(
+ await Deno.writeTextFile(join(directory, "deps.client.ts"), DEPS_CLIENT_TS);
+ const DEPS_SERVER_TS = `export * from "${new URL(
"../../server.ts",
import.meta.url,
)}";\n`;
- await Deno.writeTextFile(join(directory, "server_deps.ts"), SERVER_DEPS_TS);
+ await Deno.writeTextFile(join(directory, "deps.server.ts"), DEPS_SERVER_TS);
const ROUTES_INDEX_TSX = `/** @jsx h */
-import { h } from "../client_deps.ts";
+import { h } from "../deps.client.ts";
import Counter from "../islands/Counter.tsx";
export default function Home() {
@@ -100,7 +100,7 @@ export default function Home() {
);
const ISLANDS_COUNTER_TSX = `/** @jsx h */
-import { h, IS_BROWSER, useState } from "../client_deps.ts";
+import { h, IS_BROWSER, useState } from "../deps.client.ts";
interface CounterProps {
start: number;
@@ -127,7 +127,7 @@ export default function Counter(props: CounterProps) {
);
const ROUTES_GREET_TSX = `/** @jsx h */
-import { h, PageProps } from "../client_deps.ts";
+import { h, PageProps } from "../deps.client.ts";
export default function Greet(props: PageProps) {
return Hello {props.params.name}
;
@@ -139,7 +139,7 @@ export default function Greet(props: PageProps) {
);
const ROUTES_API_JOKE_TS =
- `import { HandlerContext } from "../../server_deps.ts";
+ `import { HandlerContext } from "../../deps.server.ts";
// Jokes courtesy of https://punsandoneliners.com/randomness/programmer-jokes/
const JOKES = [
@@ -188,7 +188,7 @@ export const handler = (_req: Request, _ctx: HandlerContext): Response => {
///
///
-import { start } from "./server_deps.ts";
+import { start } from "./deps.server.ts";
import manifest from "./fresh.gen.ts";
await start(manifest);
diff --git a/tests/cli_test.ts b/tests/cli_test.ts
index 74e2d622..c2bb7ded 100644
--- a/tests/cli_test.ts
+++ b/tests/cli_test.ts
@@ -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",
diff --git a/tests/fixture/client_deps.ts b/tests/fixture/deps.client.ts
similarity index 100%
rename from tests/fixture/client_deps.ts
rename to tests/fixture/deps.client.ts
diff --git a/tests/fixture/server_deps.ts b/tests/fixture/deps.server.ts
similarity index 100%
rename from tests/fixture/server_deps.ts
rename to tests/fixture/deps.server.ts
diff --git a/tests/fixture/islands/Test.tsx b/tests/fixture/islands/Test.tsx
index 5af0a1a1..7151be6b 100644
--- a/tests/fixture/islands/Test.tsx
+++ b/tests/fixture/islands/Test.tsx
@@ -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 (
diff --git a/tests/fixture/main.ts b/tests/fixture/main.ts
index 60689040..cb5a0320 100644
--- a/tests/fixture/main.ts
+++ b/tests/fixture/main.ts
@@ -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);
diff --git a/tests/fixture/routes/[name].tsx b/tests/fixture/routes/[name].tsx
index 0bb109dc..3b5c430e 100644
--- a/tests/fixture/routes/[name].tsx
+++ b/tests/fixture/routes/[name].tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { h } from "../client_deps.ts";
+import { h } from "../deps.client.ts";
interface Props {
params: Record;
diff --git a/tests/fixture/routes/_404.tsx b/tests/fixture/routes/_404.tsx
index fdfe83d2..b953c529 100644
--- a/tests/fixture/routes/_404.tsx
+++ b/tests/fixture/routes/_404.tsx
@@ -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 404 not found: {url.pathname}
;
diff --git a/tests/fixture/routes/_500.tsx b/tests/fixture/routes/_500.tsx
index a2b63e3e..72960cd1 100644
--- a/tests/fixture/routes/_500.tsx
+++ b/tests/fixture/routes/_500.tsx
@@ -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 500 internal error: {(error as Error).message}
;
diff --git a/tests/fixture/routes/_app.tsx b/tests/fixture/routes/_app.tsx
index 0386241f..6d2a7789 100644
--- a/tests/fixture/routes/_app.tsx
+++ b/tests/fixture/routes/_app.tsx
@@ -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 (
diff --git a/tests/fixture/routes/_middleware.ts b/tests/fixture/routes/_middleware.ts
index 5101216a..19a34c2d 100644
--- a/tests/fixture/routes/_middleware.ts
+++ b/tests/fixture/routes/_middleware.ts
@@ -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";
diff --git a/tests/fixture/routes/assetsCaching/index.tsx b/tests/fixture/routes/assetsCaching/index.tsx
index 0dc6c72b..b5c314c9 100644
--- a/tests/fixture/routes/assetsCaching/index.tsx
+++ b/tests/fixture/routes/assetsCaching/index.tsx
@@ -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() {
diff --git a/tests/fixture/routes/books/[id].tsx b/tests/fixture/routes/books/[id].tsx
index f20dc527..7ca12de1 100644
--- a/tests/fixture/routes/books/[id].tsx
+++ b/tests/fixture/routes/books/[id].tsx
@@ -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 Book {props.params.id}
;
diff --git a/tests/fixture/routes/index.tsx b/tests/fixture/routes/index.tsx
index 9d8071b7..dd5efc46 100644
--- a/tests/fixture/routes/index.tsx
+++ b/tests/fixture/routes/index.tsx
@@ -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() {
diff --git a/tests/fixture/routes/intercept.tsx b/tests/fixture/routes/intercept.tsx
index 04cdeb8b..a42396b8 100644
--- a/tests/fixture/routes/intercept.tsx
+++ b/tests/fixture/routes/intercept.tsx
@@ -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() {
diff --git a/tests/fixture/routes/intercept_args.tsx b/tests/fixture/routes/intercept_args.tsx
index 5d329742..d69b6ffd 100644
--- a/tests/fixture/routes/intercept_args.tsx
+++ b/tests/fixture/routes/intercept_args.tsx
@@ -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 {
diff --git a/tests/fixture/routes/layeredMdw/_middleware.ts b/tests/fixture/routes/layeredMdw/_middleware.ts
index 65f80edc..867bbe43 100644
--- a/tests/fixture/routes/layeredMdw/_middleware.ts
+++ b/tests/fixture/routes/layeredMdw/_middleware.ts
@@ -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";
diff --git a/tests/fixture/routes/layeredMdw/layer2/_middleware.ts b/tests/fixture/routes/layeredMdw/layer2/_middleware.ts
index ce365fc9..af2ddc62 100644
--- a/tests/fixture/routes/layeredMdw/layer2/_middleware.ts
+++ b/tests/fixture/routes/layeredMdw/layer2/_middleware.ts
@@ -1,4 +1,4 @@
-import { MiddlewareHandlerContext } from "../../../server_deps.ts";
+import { MiddlewareHandlerContext } from "../../../deps.server.ts";
interface State {
root: string;
diff --git a/tests/fixture/routes/layeredMdw/layer2/layer3/_middleware.ts b/tests/fixture/routes/layeredMdw/layer2/layer3/_middleware.ts
index 1da0f5de..a63bb20c 100644
--- a/tests/fixture/routes/layeredMdw/layer2/layer3/_middleware.ts
+++ b/tests/fixture/routes/layeredMdw/layer2/layer3/_middleware.ts
@@ -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";
diff --git a/tests/fixture/routes/params.tsx b/tests/fixture/routes/params.tsx
index c624fc5b..0cc12442 100644
--- a/tests/fixture/routes/params.tsx
+++ b/tests/fixture/routes/params.tsx
@@ -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 = {
diff --git a/tests/fixture/routes/props/[id].tsx b/tests/fixture/routes/props/[id].tsx
index 3dbf7a2b..a7798824 100644
--- a/tests/fixture/routes/props/[id].tsx
+++ b/tests/fixture/routes/props/[id].tsx
@@ -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 {JSON.stringify(props)}
;
diff --git a/tests/fixture/routes/static.tsx b/tests/fixture/routes/static.tsx
index 5e763480..9b3859d2 100644
--- a/tests/fixture/routes/static.tsx
+++ b/tests/fixture/routes/static.tsx
@@ -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 (
diff --git a/tests/fixture/routes/wildcard.tsx b/tests/fixture/routes/wildcard.tsx
index 7c898da2..c81720d0 100644
--- a/tests/fixture/routes/wildcard.tsx
+++ b/tests/fixture/routes/wildcard.tsx
@@ -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") {
diff --git a/tests/fixture_error/client_deps.ts b/tests/fixture_error/deps.client.ts
similarity index 100%
rename from tests/fixture_error/client_deps.ts
rename to tests/fixture_error/deps.client.ts
diff --git a/tests/fixture_error/server_deps.ts b/tests/fixture_error/deps.server.ts
similarity index 100%
rename from tests/fixture_error/server_deps.ts
rename to tests/fixture_error/deps.server.ts
diff --git a/tests/fixture_error/main.ts b/tests/fixture_error/main.ts
index 5886c41c..7652910e 100644
--- a/tests/fixture_error/main.ts
+++ b/tests/fixture_error/main.ts
@@ -4,7 +4,7 @@
///
///
-import { start } from "./server_deps.ts";
+import { start } from "./deps.server.ts";
import manifest from "./fresh.gen.ts";
await start(manifest);
diff --git a/tests/fixture_error/routes/index.tsx b/tests/fixture_error/routes/index.tsx
index b889b559..bac1343a 100644
--- a/tests/fixture_error/routes/index.tsx
+++ b/tests/fixture_error/routes/index.tsx
@@ -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!");
diff --git a/www/components/Button.tsx b/www/components/Button.tsx
index c2a87ae0..f23e2fd6 100644
--- a/www/components/Button.tsx
+++ b/www/components/Button.tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { h, tw } from "../client_deps.ts";
+import { h, tw } from "../deps.client.ts";
export function RoundedButton(props: h.JSX.HTMLAttributes) {
return (
diff --git a/www/components/DocsSidebar.tsx b/www/components/DocsSidebar.tsx
index fc5e1432..5ae19ead 100644
--- a/www/components/DocsSidebar.tsx
+++ b/www/components/DocsSidebar.tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { apply, h, tw } from "../client_deps.ts";
+import { apply, h, tw } from "../deps.client.ts";
import {
CATEGORIES,
TableOfContentsCategory,
diff --git a/www/components/Footer.tsx b/www/components/Footer.tsx
index a98ae3b7..a4b36e68 100644
--- a/www/components/Footer.tsx
+++ b/www/components/Footer.tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { h, tw } from "../client_deps.ts";
+import { h, tw } from "../deps.client.ts";
const LINKS = [
{
diff --git a/www/components/Icons.tsx b/www/components/Icons.tsx
index adb729ad..03e34e40 100644
--- a/www/components/Icons.tsx
+++ b/www/components/Icons.tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { h, tw } from "../client_deps.ts";
+import { h, tw } from "../deps.client.ts";
export function IconMinus() {
return (
diff --git a/www/components/NavigationBar.tsx b/www/components/NavigationBar.tsx
index d16f445a..1ac93679 100644
--- a/www/components/NavigationBar.tsx
+++ b/www/components/NavigationBar.tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { h, tw } from "../client_deps.ts";
+import { h, tw } from "../deps.client.ts";
export default function NavigationBar(props: { active: string }) {
const items = [
diff --git a/www/components/WarningBanner.tsx b/www/components/WarningBanner.tsx
index b9c1619c..636acd5e 100644
--- a/www/components/WarningBanner.tsx
+++ b/www/components/WarningBanner.tsx
@@ -1,6 +1,6 @@
/** @jsx h */
-import { h, tw } from "../client_deps.ts";
+import { h, tw } from "../deps.client.ts";
export default function WarningBanner() {
const warning = tw`bg-yellow-100 border(1 yellow-200) p-4 mb-4`;
diff --git a/www/client_deps.ts b/www/deps.client.ts
similarity index 100%
rename from www/client_deps.ts
rename to www/deps.client.ts
diff --git a/www/server_deps.ts b/www/deps.server.ts
similarity index 100%
rename from www/server_deps.ts
rename to www/deps.server.ts
diff --git a/www/islands/Counter.tsx b/www/islands/Counter.tsx
index bbadf29a..f02f59d2 100644
--- a/www/islands/Counter.tsx
+++ b/www/islands/Counter.tsx
@@ -1,5 +1,5 @@
/** @jsx h */
-import { h, IS_BROWSER, tw, useState } from "../client_deps.ts";
+import { h, IS_BROWSER, tw, useState } from "../deps.client.ts";
import { RoundedButton } from "../components/Button.tsx";
import { IconMinus, IconPlus } from "../components/Icons.tsx";
diff --git a/www/islands/LemonDrop.tsx b/www/islands/LemonDrop.tsx
index 83a2bc09..326f2087 100644
--- a/www/islands/LemonDrop.tsx
+++ b/www/islands/LemonDrop.tsx
@@ -6,7 +6,7 @@ import {
useEffect,
useRef,
useState,
-} from "../client_deps.ts";
+} from "../deps.client.ts";
import { Spring, WaveTank } from "../components/WaveTank.ts";
function easeInCirc(x: number) {
diff --git a/www/main.ts b/www/main.ts
index 8cb38010..3f6e7a59 100644
--- a/www/main.ts
+++ b/www/main.ts
@@ -4,7 +4,7 @@
///
///
-import { start } from "./server_deps.ts";
+import { start } from "./deps.server.ts";
import routes from "./fresh.gen.ts";
await start(routes);
diff --git a/www/routes/_render.ts b/www/routes/_render.ts
index 155a5cca..59d9a846 100644
--- a/www/routes/_render.ts
+++ b/www/routes/_render.ts
@@ -1,7 +1,7 @@
// This module adds twind support.
-import { setup, theme } from "../client_deps.ts";
-import { RenderContext, RenderFn, virtualSheet } from "../server_deps.ts";
+import { setup, theme } from "../deps.client.ts";
+import { RenderContext, RenderFn, virtualSheet } from "../deps.server.ts";
const sheet = virtualSheet();
sheet.reset();
diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx
index d0912816..56296ef7 100644
--- a/www/routes/docs/[...slug].tsx
+++ b/www/routes/docs/[...slug].tsx
@@ -9,8 +9,8 @@ import {
Head,
PageProps,
tw,
-} from "../../client_deps.ts";
-import { frontMatter, gfm, Handlers } from "../../server_deps.ts";
+} from "../../deps.client.ts";
+import { frontMatter, gfm, Handlers } from "../../deps.server.ts";
import DocsSidebar from "../../components/DocsSidebar.tsx";
import Footer from "../../components/Footer.tsx";
import NavigationBar from "../../components/NavigationBar.tsx";
diff --git a/www/routes/gfm.css.ts b/www/routes/gfm.css.ts
index bcdb7174..147757cd 100644
--- a/www/routes/gfm.css.ts
+++ b/www/routes/gfm.css.ts
@@ -1,4 +1,4 @@
-import { gfm, Handlers } from "../server_deps.ts";
+import { gfm, Handlers } from "../deps.server.ts";
// TODO(lucacasonato): hash the file and use the hash as the filename, and serve
// with high-cacheability headers.
diff --git a/www/routes/index.tsx b/www/routes/index.tsx
index f23d6f42..c64e2ebe 100644
--- a/www/routes/index.tsx
+++ b/www/routes/index.tsx
@@ -9,7 +9,7 @@ import {
Head,
PageProps,
tw,
-} from "../client_deps.ts";
+} from "../deps.client.ts";
import Counter from "../islands/Counter.tsx";
import LemonDrop from "../islands/LemonDrop.tsx";
import Footer from "../components/Footer.tsx";