Skip to content

Commit

Permalink
chore(deps): upgrade fresh with tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Mar 13, 2024
1 parent 2f146a2 commit aea45f3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/graphql-yoga/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"@vicary/fresh-graphql": "jsr:@vicary/fresh-graphql@^0.1.0",
"graphql-yoga": "npm:graphql-yoga@^5.1.1",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/"
"preact/": "https://esm.sh/[email protected]/",
"tailwindcss": "npm:tailwindcss@^3.4.0"
},
"lock": false,
"tasks": {
Expand Down
3 changes: 2 additions & 1 deletion examples/graphql-yoga/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dev from "$fresh/dev.ts";
import { dev as graphql } from "@vicary/fresh-graphql";
import config from "./fresh.config.ts";

await graphql(import.meta.url);
await dev(import.meta.url, "./main.ts");
await dev(import.meta.url, "./main.ts", config);
8 changes: 8 additions & 0 deletions examples/graphql-yoga/fresh.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import tailwind from "$fresh/plugins/tailwind.ts";
import { defineConfig } from "$fresh/server.ts";

export default defineConfig({
plugins: [
tailwind(),
],
});
7 changes: 7 additions & 0 deletions examples/graphql-yoga/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import typographfy from "npm:@tailwindcss/typography";
import { type Config } from "tailwindcss";

export default {
content: ["{routes,islands,components}/**/*.{ts,tsx}"],
plugins: [typographfy],
} as Config;

0 comments on commit aea45f3

Please sign in to comment.