Skip to content

Commit

Permalink
chore(example): use @hono/vite-ssg
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Jan 25, 2024
1 parent 4579692 commit a608b91
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 74 deletions.
1 change: 1 addition & 0 deletions examples/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"private": true,
"devDependencies": {
"@hono/vite-ssg": "^0.0.1",
"@mdx-js/rollup": "^3.0.0",
"remark-frontmatter": "^5.0.0",
"remark-mdx-frontmatter": "^4.0.0",
Expand Down
73 changes: 0 additions & 73 deletions examples/mdx/src/vite-plugin.ts

This file was deleted.

2 changes: 1 addition & 1 deletion examples/mdx/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import devServer from '@hono/vite-dev-server'
import ssg from '@hono/vite-ssg'
import mdx from '@mdx-js/rollup'
import honox from 'honox/vite'
import remarkFrontmatter from 'remark-frontmatter'
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
import { defineConfig } from '../../node_modules/vite'
import ssg from './src/vite-plugin'

const entry = './app/server.ts'

Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,15 @@ __metadata:
languageName: node
linkType: hard

"@hono/vite-ssg@npm:^0.0.1":
version: 0.0.1
resolution: "@hono/vite-ssg@npm:0.0.1"
peerDependencies:
hono: ">=4.0.0"
checksum: 7e8f2ea2ce38ba70f758350c379eaab26896c33837145f9425ed3fc91fc6f78fb2c05228f4dbae2c83b5f783658863fa5dbdb5b6fb8d222f113285bcfb6a01fa
languageName: node
linkType: hard

"@humanwhocodes/config-array@npm:^0.11.13":
version: 0.11.13
resolution: "@humanwhocodes/config-array@npm:0.11.13"
Expand Down Expand Up @@ -4065,6 +4074,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "mdx@workspace:examples/mdx"
dependencies:
"@hono/vite-ssg": "npm:^0.0.1"
"@mdx-js/rollup": "npm:^3.0.0"
honox: "workspace:^"
remark-frontmatter: "npm:^5.0.0"
Expand Down

0 comments on commit a608b91

Please sign in to comment.