feat: prebundle code + restore from snapshot (#1604)

This commit is contained in:
Marvin Hagemeister
2023-08-16 16:47:51 +02:00
committed by GitHub
parent f67ec8520f
commit 477364c567
29 changed files with 500 additions and 28 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
{
"lock": false,
"tasks": {
"start": "deno run -A --watch=static/,routes/ dev.ts"
"start": "deno run -A --watch=static/,routes/ dev.ts",
"build": "deno run -A dev.ts build",
"preview": "deno run -A main.ts"
},
"imports": {
"$fresh/": "../",
+2 -1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env -S deno run -A --watch=static/,routes/
import dev from "$fresh/dev.ts";
import config from "./fresh.config.ts";
await dev(import.meta.url, "./main.ts");
await dev(import.meta.url, "./main.ts", config);
+7
View File
@@ -0,0 +1,7 @@
import twindPlugin from "$fresh/plugins/twind.ts";
import twindConfig from "./twind.config.ts";
import { defineConfig } from "$fresh/server.ts";
export default defineConfig({
plugins: [twindPlugin(twindConfig)],
});
+2 -3
View File
@@ -5,9 +5,8 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import twindPlugin from "$fresh/plugins/twind.ts";
import manifest from "./fresh.gen.ts";
import twindConfig from "./twind.config.ts";
import config from "./fresh.config.ts";
await start(manifest, { plugins: [twindPlugin(twindConfig)] });
await start(manifest, config);
+7
View File
@@ -77,6 +77,13 @@ ol.nested li:before {
font-size: .8125rem;
line-height: 1;
}
.highlight-source-yml .atrule {
color: var(--color-prettylights-syntax-entity);
}
.highlight-source-yml .string {
color: var(--color-prettylights-syntax-string);
}
`;
export const handler: Handlers = {
Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

+1
View File
@@ -5,6 +5,7 @@ import "https://esm.sh/prismjs@1.29.0/components/prism-tsx.js?no-check";
import "https://esm.sh/prismjs@1.29.0/components/prism-diff.js?no-check";
import "https://esm.sh/prismjs@1.29.0/components/prism-json.js?no-check";
import "https://esm.sh/prismjs@1.29.0/components/prism-bash.js?no-check";
import "https://esm.sh/prismjs@1.29.0/components/prism-yaml.js?no-check";
export { extract as frontMatter } from "$std/front_matter/yaml.ts";