@@ -6,13 +6,13 @@ import { fromFileUrl, join } from "@std/path"
66await using _ = Deno . serve ( { port : Number ( new URL ( globalThis . location . href ) . port ) } , serve . fetch )
77
88await Mizu . generate ( [
9- { source : ( ) => html ( "index" ) , destination : "index.html" , render : { } } ,
10- { source : ( ) => html ( "build" ) , destination : "build.html" , render : { } } ,
11- { source : ( ) => html ( "playground" ) , destination : "playground.html" , render : { } } ,
12- { source : ( ) => html ( "community" ) , destination : "community.html" , render : { } } ,
13- { source : ( ) => js ( "@mizu/render/client" , { format : "iife" } ) , destination : "client.js" } ,
14- { source : ( ) => js ( "@mizu/render/client" , { format : "esm" } ) , destination : "client.mjs" } ,
15- { source : new URL ( "/matcha.css" , globalThis . location . href ) , destination : "matcha.css" } ,
16- { source : new URL ( "/highlight.js" , globalThis . location . href ) , destination : "highlight.js" } ,
17- { source : "*.{svg,css,png,js}" , directory : fromFileUrl ( import . meta. resolve ( "./static" ) ) , destination : "." } ,
9+ [ ( ) => html ( "index" ) , "index.html" , { render : { } } ] ,
10+ [ ( ) => html ( "build" ) , "build.html" , { render : { } } ] ,
11+ [ ( ) => html ( "playground" ) , "playground.html" , { render : { } } ] ,
12+ [ ( ) => html ( "community" ) , "community.html" , { render : { } } ] ,
13+ [ ( ) => js ( "@mizu/render/client" , { format : "iife" } ) , "client.js" ] ,
14+ [ ( ) => js ( "@mizu/render/client" , { format : "esm" } ) , "client.mjs" ] ,
15+ [ new URL ( "/matcha.css" , globalThis . location . href ) , "matcha.css" ] ,
16+ [ new URL ( "/highlight.js" , globalThis . location . href ) , "highlight.js" ] ,
17+ [ "*.{svg,css,png,js}" , "." , { directory : fromFileUrl ( import . meta. resolve ( "./static" ) ) } ] ,
1818] , { output : join ( Deno . cwd ( ) , ".pages" ) } )
0 commit comments