From 1ca14fcf2ff3a66056ff2b8ae66269361bc88d80 Mon Sep 17 00:00:00 2001 From: jxom Date: Sun, 3 Mar 2024 11:56:36 +1100 Subject: [PATCH] feat: add static files to templates (#56) --- pnpm-lock.yaml | 10 +++++++++- src/cli/commands/dev.ts | 7 ++++++- src/cli/index.ts | 1 + templates/bun/public/icon.png | Bin 0 -> 12910 bytes templates/bun/src/index.tsx | 14 ++++++++------ templates/bun/tsconfig.json | 1 + templates/cloudflare-worker/public/icon.png | Bin 0 -> 12910 bytes templates/cloudflare-worker/src/index.tsx | 10 ++++++++++ templates/cloudflare-worker/wrangler.toml | 3 +++ templates/default/package.json | 1 + templates/default/public/icon.png | Bin 0 -> 12910 bytes templates/default/src/index.tsx | 3 +++ templates/next/app/api/[[...routes]]/route.tsx | 1 + templates/node/public/icon.png | Bin 0 -> 12910 bytes templates/node/src/index.tsx | 3 +++ templates/vercel/api/index.tsx | 1 + templates/vercel/public/icon.png | Bin 0 -> 12910 bytes tsconfig.json | 2 +- 18 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 templates/bun/public/icon.png create mode 100644 templates/cloudflare-worker/public/icon.png create mode 100644 templates/default/public/icon.png create mode 100644 templates/node/public/icon.png create mode 100644 templates/vercel/public/icon.png diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9ede723..5d5c5a2c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -253,6 +253,9 @@ importers: templates/default: dependencies: + '@hono/node-server': + specifier: latest + version: 1.8.2 frog: specifier: latest version: link:../../src @@ -1817,13 +1820,18 @@ packages: resolution: {integrity: sha512-9ondWs/5EuyZOd/iyiRp0GQfMEq+IA+IbV8Wy2bgdr5+cC55I3xbQrqtXKprw7jJhfvq3IVw7ALiuvCEmLdCAA==} engines: {node: '>=18.14.1'} + /@hono/node-server@1.8.2: + resolution: {integrity: sha512-h8l2TBLCPHZBUrrkosZ6L5CpBLj6zdESyF4B+zngiCDF7aZFQJ0alVbLx7jn8PCVi9EyoFf8a4hOZFi1tD95EA==} + engines: {node: '>=18.14.1'} + dev: false + /@hono/vite-dev-server@0.7.0(hono@4.0.4): resolution: {integrity: sha512-NFcBuyklOammhiExJUYvTfzoU9Mzv4F7ddUCjTe9hy37/AHGZXoksZaBWFl2fRSPVZaPvmX9eiRLBMIrML2iYw==} engines: {node: '>=18.14.1'} peerDependencies: hono: '*' dependencies: - '@hono/node-server': 1.8.1 + '@hono/node-server': 1.8.2 hono: 4.0.4 miniflare: 3.20240129.3 minimatch: 9.0.3 diff --git a/src/cli/commands/dev.ts b/src/cli/commands/dev.ts index e8b4227c..a46d822e 100644 --- a/src/cli/commands/dev.ts +++ b/src/cli/commands/dev.ts @@ -12,13 +12,14 @@ type DevOptions = { host?: boolean port?: number proxy?: 'cloudflared' | 'ngrok' + staticPath?: string } export async function dev( entry_: string | undefined, options: DevOptions = {}, ) { - const { host, port, proxy } = options + const { host, port, proxy, staticPath } = options const entry = entry_ || (await findEntrypoint()) const entry_resolved = resolve(join(process.cwd(), entry)) @@ -31,8 +32,12 @@ export async function dev( host, port, }, + publicDir: staticPath ?? 'public', plugins: [ devServer({ + exclude: [ + /.+\.(gif|jpe?g|tiff?|png|webp|bmp|woff|eot|woff2|ttf|otf|ico|txt)$/, + ], entry: entry_resolved, // Note: we are not relying on the default export so we can be compatible with // runtimes that rely on it (ie. Vercel Serverless Functions). diff --git a/src/cli/index.ts b/src/cli/index.ts index af64e57f..97dbca23 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -19,6 +19,7 @@ cli '-P, --proxy [string]', 'Start proxy for dev server (experimental). Valid options are `cloudflared` and `ngrok`.', ) + .option('-s, --staticPath [string]', 'Path to static files (default: public)') .example((name) => `${name} dev --host`) .example((name) => `${name} dev --port 6969`) .example((name) => `${name} dev --proxy ngrok`) diff --git a/templates/bun/public/icon.png b/templates/bun/public/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..76b454b1c5f610cedbacaef4aadd7bf160fce6bd GIT binary patch literal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I4Ig0=Q literal 0 HcmV?d00001 diff --git a/templates/bun/src/index.tsx b/templates/bun/src/index.tsx index 97dbab25..122afde5 100644 --- a/templates/bun/src/index.tsx +++ b/templates/bun/src/index.tsx @@ -1,4 +1,3 @@ -import { serve } from 'bun' import { Button, Frog, TextInput } from 'frog' export const app = new Frog({ @@ -56,8 +55,11 @@ app.frame('/', (c) => { }) }) -serve({ - fetch: app.fetch, - port: 3000, -}) -console.log('Server is running on port 3000') +if (typeof Bun !== 'undefined') { + app.use('/*', (await import('hono/bun')).serveStatic({ root: './public' })) + Bun.serve({ + fetch: app.fetch, + port: 3000, + }) + console.log('Server is running on port 3000') +} diff --git a/templates/bun/tsconfig.json b/templates/bun/tsconfig.json index c442b33f..32f3a20f 100644 --- a/templates/bun/tsconfig.json +++ b/templates/bun/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "module": "NodeNext", "strict": true, "jsx": "react-jsx", "jsxImportSource": "hono/jsx" diff --git a/templates/cloudflare-worker/public/icon.png b/templates/cloudflare-worker/public/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..76b454b1c5f610cedbacaef4aadd7bf160fce6bd GIT binary patch literal 12910 zcmd_R_di_E7e9WNRij3T79`P2lqex;2+>KbUZa-~oz+PYA{!AzUqP^XuS-M;HtZrI zx+Qw=EX#La@6YES`2PC+?&ERq?wvXFoO932oS9Shoq?VPH6<%0007jQ&(xj+0Fm;4 z7da^a0FIfH(u6OH*U!v+0f33;zYC=KoO_Q@2=aZd@dT(GW?v^ffSpxzRREv{cH`2H z1OOz6HPuv%f+LZEp!}Y z8hD@5d6;{e9Zz83|L-3cJ^E^=#NL;6p_!jy7RQITm+kAqbvE>~viE#F=<1@6{EZe+DwCD8tlP4{^1Vh6VIDexf1UN5_mD=W9-vd1jzwK6y@y!ex z`Nf*3sG9Ig_Hiy*TDYPA-;6Yv=+av2{ClUO%}{H_a1qWrx&%`OP`tJfS(od%pD3cs zi#7O*hSZ}DJv8aF<_>7IuM%QlNH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noZ`bg&6+Am*!;t?gBXkUhI-HfS5CD!=flw7K7 zj~khuUe-Vp_pQ77BkK0LgGvE$Pu4<~^xtcj%6lM2uD;4MXjNv4!Cs<1(#y0_jFb)!j`yzpO z`{`H03qAzbR5`)3rlp$JyOyTN*-Qf>uhfd5%Xv0EW#2T_Ku$;r1W)jgk5G1z{m}%X z{psJhsJpr8Q4i}&KI+DiD_46))43a(gf4Ci5h(P5=x^jtEC*^^&RuWO+K^zFLFAc@ zGg6K6s%zojGqyIOr74s#X$8J-c2Z$Ok%-RK;GRC~TM<*Va490X`ifTcUrAwDk}2Y( zJ><@QfPMt6pDGaj0D`i&!1}F=my{{&4@%tjBXq+~$Su`=DYKKVeb`)<`~Df{KwRc zfe0rz1+~=Q&6dUii?dabJ^CP9VM2AmDdejof9CJhueTCnr?mYH;&Q_5$ew|@7Wy^1 z_&Z93)Yq40x()C6FfHE?hy8tKw+g3`I|Lr714Iv;SU$XbPFi>nTo4*=qWGL&@Tvue zFTw?jziTixe)Z`fIGITA-1M@DQdWj$jx76DxRGz9HeF<-lStE+O|%>J{|EnyK==Rl do$x0Spw1%Vp_EYd-v8QaKGjpJd}15@{{RI4Ig0=Q literal 0 HcmV?d00001 diff --git a/templates/cloudflare-worker/src/index.tsx b/templates/cloudflare-worker/src/index.tsx index 11c2983d..341a205f 100644 --- a/templates/cloudflare-worker/src/index.tsx +++ b/templates/cloudflare-worker/src/index.tsx @@ -1,4 +1,5 @@ import { Button, Frog, TextInput } from 'frog' +import { serveStatic } from 'hono/cloudflare-workers' export const app = new Frog({ // Supply a Hub API URL to enable frame verification. @@ -55,4 +56,13 @@ app.frame('/', (c) => { }) }) +if (import.meta.env?.MODE !== 'development') + app.use( + '/*', + serveStatic({ + root: './', + manifest: await import('__STATIC_CONTENT_MANIFEST'), + }), + ) + export default app diff --git a/templates/cloudflare-worker/wrangler.toml b/templates/cloudflare-worker/wrangler.toml index acf16443..4af6f2fd 100644 --- a/templates/cloudflare-worker/wrangler.toml +++ b/templates/cloudflare-worker/wrangler.toml @@ -1,6 +1,9 @@ name = "frog-template" compatibility_date = "2023-12-01" +[site] +bucket = "./public" + # [vars] # MY_VARIABLE = "production_value" diff --git a/templates/default/package.json b/templates/default/package.json index 91f0f96c..b1647c14 100644 --- a/templates/default/package.json +++ b/templates/default/package.json @@ -6,6 +6,7 @@ "dev": "frog dev" }, "dependencies": { + "@hono/node-server": "latest", "frog": "latest", "hono": "^4" }, diff --git a/templates/default/public/icon.png b/templates/default/public/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..76b454b1c5f610cedbacaef4aadd7bf160fce6bd GIT binary patch literal 12910 zcmd_R_di_E7e9WNRij3T79`P2lqex;2+>KbUZa-~oz+PYA{!AzUqP^XuS-M;HtZrI zx+Qw=EX#La@6YES`2PC+?&ERq?wvXFoO932oS9Shoq?VPH6<%0007jQ&(xj+0Fm;4 z7da^a0FIfH(u6OH*U!v+0f33;zYC=KoO_Q@2=aZd@dT(GW?v^ffSpxzRREv{cH`2H z1OOz6HPuv%f+LZEp!}Y z8hD@5d6;{e9Zz83|L-3cJ^E^=#NL;6p_!jy7RQITm+kAqbvE>~viE#F=<1@6{EZe+DwCD8tlP4{^1Vh6VIDexf1UN5_mD=W9-vd1jzwK6y@y!ex z`Nf*3sG9Ig_Hiy*TDYPA-;6Yv=+av2{ClUO%}{H_a1qWrx&%`OP`tJfS(od%pD3cs zi#7O*hSZ}DJv8aF<_>7IuM%QlNHQ~T#`3o?!uF`O{f{%qgbVPlw1?zs7*faTqR;-= z87t;$FvhNcET4rTy`D-9WT;<_I;=vB?A9RPNhp-F*G-F@g>dxHVF@8lG^)#6G!n*M zc2uZ2EQxbxjLj{h^5y`=(;mG(31m4e`GKiKV5CHHb?;pnbQsU2qS=mppNASo{6MTL z;ODp>IEpLbf{uO7FRc~4K3`u}ULm`KZ%rRA3~uD+-hy@{h3ot1Jrw0^TV6`#@z%Q! z)EJTFdA(-1ZBq#VnjDT`U-VN`sxZ$ ziIi!%-X6KCO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RK;GRC~TM<*Va490X`ifTcUrAwDk}2Y( zJ><@QfPMt6pDGaj0D`i&!1}F=my{{&4@%tjBXq+~$Su`=DYKKVeb`)<`~Df{KwRc zfe0rz1+~=Q&6dUii?dabJ^CP9VM2AmDdejof9CJhueTCnr?mYH;&Q_5$ew|@7Wy^1 z_&Z93)Yq40x()C6FfHE?hy8tKw+g3`I|Lr714Iv;SU$XbPFi>nTo4*=qWGL&@Tvue zFTw?jziTixe)Z`fIGITA-1M@DQdWj$jx76DxRGz9HeF<-lStE+O|%>J{|EnyK==Rl do$x0Spw1%Vp_EYd-v8QaKGjpJd}15@{{RI4Ig0=Q literal 0 HcmV?d00001 diff --git a/templates/default/src/index.tsx b/templates/default/src/index.tsx index 33321273..48b74a5a 100644 --- a/templates/default/src/index.tsx +++ b/templates/default/src/index.tsx @@ -1,3 +1,4 @@ +import { serveStatic } from '@hono/node-server/serve-static' import { Button, Frog, TextInput } from 'frog' export const app = new Frog({ @@ -5,6 +6,8 @@ export const app = new Frog({ // hubApiUrl: 'https://api.hub.wevm.dev', }) +app.use('/*', serveStatic({ root: './public' })) + app.frame('/', (c) => { const { buttonValue, inputText, status } = c const fruit = inputText || buttonValue diff --git a/templates/next/app/api/[[...routes]]/route.tsx b/templates/next/app/api/[[...routes]]/route.tsx index a4191b7f..ed5e15aa 100644 --- a/templates/next/app/api/[[...routes]]/route.tsx +++ b/templates/next/app/api/[[...routes]]/route.tsx @@ -4,6 +4,7 @@ import { Button, Frog, TextInput } from 'frog' import { handle } from 'frog/next' const app = new Frog({ + assetsPath: '/', basePath: '/api', // Supply a Hub API URL to enable frame verification. // hubApiUrl: 'https://api.hub.wevm.dev', diff --git a/templates/node/public/icon.png b/templates/node/public/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..76b454b1c5f610cedbacaef4aadd7bf160fce6bd GIT binary patch literal 12910 zcmd_R_di_E7e9WNRij3T79`P2lqex;2+>KbUZa-~oz+PYA{!AzUqP^XuS-M;HtZrI zx+Qw=EX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- a/templates/node/src/index.tsx +++ b/templates/node/src/index.tsx @@ -1,4 +1,5 @@ import { serve } from '@hono/node-server' +import { serveStatic } from '@hono/node-server/serve-static' import { Button, Frog, TextInput } from 'frog' export const app = new Frog({ @@ -6,6 +7,8 @@ export const app = new Frog({ // hubApiUrl: 'https://api.hub.wevm.dev', }) +app.use('/*', serveStatic({ root: './public' })) + app.frame('/', (c) => { const { buttonValue, inputText, status } = c const fruit = inputText || buttonValue diff --git a/templates/vercel/api/index.tsx b/templates/vercel/api/index.tsx index 6899e3f5..ee469d6a 100644 --- a/templates/vercel/api/index.tsx +++ b/templates/vercel/api/index.tsx @@ -7,6 +7,7 @@ import { handle } from 'frog/vercel' // } export const app = new Frog({ + assetsPath: '/', basePath: '/api', // Supply a Hub API URL to enable frame verification. // hubApiUrl: 'https://api.hub.wevm.dev', diff --git a/templates/vercel/public/icon.png b/templates/vercel/public/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..76b454b1c5f610cedbacaef4aadd7bf160fce6bd GIT binary patch literal 12910 zcmd_R_di_E7e9WNRij3T79`P2lqex;2+>KbUZa-~oz+PYA{!AzUqP^XuS-M;HtZrI zx+Qw=EX#La@6YES`2PC+?&ERq?wvXFoO932oS9Shoq?VPH6<%0007jQ&(xj+0Fm;4 z7da^a0FIfH(u6OH*U!v+0f33;zYC=KoO_Q@2=aZd@dT(GW?v^ffSpxzRREv{cH`2H z1OOz6HPuv%f+LZEp!}Y z8hD@5d6;{e9Zz83|L-3cJ^E^=#NL;6p_!jy7RQITm+kAqbvE>~viE#F=<1@6{EZe+DwCD8tlP4{^1Vh6VIDexf1UN5_mD=W9-vd1jzwK6y@y!ex z`Nf*3sG9Ig_Hiy*TDYPA-;6Yv=+av2{ClUO%}{H_a1qWrx&%`OP`tJfS(od%pD3cs zi#7O*hSZ}DJv8aF<_>7IuM%QlNHQ~T#`3o?!uF`O{f{%qgbVPlw1?zs7*faTqR;-= z87t;$FvhNcET4rTy`D-9WT;<_I;=vB?A9RPN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tcj%6lM2uD;4MXjNv4!Cs<1(#y0_jFb)!j`yzpO z`{`H03qAzbR5`)3rlp$JyOyTN*-Qf>uhfd5%Xv0EW#2T_Ku$;r1W)jgk5G1z{m}%X z{psJhsJpr8Q4i}&KI+DiD_46))43a(gf4Ci5h(P5=x^jtEC*^^&RuWO+K^zFLFAc@ zGg6K6s%zojGqyIOr74s#X$8J-c2Z$Ok%-RK;GRC~TM<*Va490X`ifTcUrAwDk}2Y( zJ><@QfPMt6pDGaj0D`i&!1}F=my{{&4@%tjBXq+~$Su`=DYKKVeb`)<`~Df{KwRc zfe0rz1+~=Q&6dUii?dabJ^CP9VM2AmDdejof9CJhueTCnr?mYH;&Q_5$ew|@7Wy^1 z_&Z93)Yq40x()C6FfHE?hy8tKw+g3`I|Lr714Iv;SU$XbPFi>nTo4*=qWGL&@Tvue zFTw?jziTixe)Z`fIGITA-1M@DQdWj$jx76DxRGz9HeF<-lStE+O|%>J{|EnyK==Rl do$x0Spw1%Vp_EYd-v8QaKGjpJd}15@{{RI4Ig0=Q literal 0 HcmV?d00001 diff --git a/tsconfig.json b/tsconfig.json index 064b1a43..0da2469b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { // This configuration is used for local development and type checking. "extends": "./tsconfig.base.json", - "exclude": ["templates/next", "create-frog/templates"], + "exclude": ["templates/*", "create-frog/templates"], "include": ["create-frog", "examples", "templates", "src"], "compilerOptions": { "jsx": "react-jsx",