Skip to content

Commit

Permalink
added watch task in dev mode, had to rename files to mjs so that elev…
Browse files Browse the repository at this point in the history
…enty doesnt get confused
  • Loading branch information
wolulcmit committed May 15, 2024
1 parent 4e7ec85 commit 70f82c8
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 120 deletions.
7 changes: 4 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"tasks": {
"clean": "rm -rf _site",
"writeKVData": "deno run --allow-write --unstable-kv server/write-data.ts",
"dev": "deno task writeKVData && deno task generateSlim && deno task eleventyWatch & deno run --watch --allow-net --allow-read --unstable-kv server/main.ts",
"eleventyWatch": "deno run --allow-sys --allow-run --allow-read --allow-write --allow-env npm:@11ty/eleventy@canary --watch",
"generate": "deno task clean && deno run --allow-read --allow-write --allow-env --allow-sys npm:@11ty/eleventy@canary",
"generateSlim": "LAYOUT=slim deno run --allow-read --allow-write --allow-env --allow-sys npm:@11ty/eleventy@canary",
"tscheck": "deno check server/main.ts",
"dev": "deno task writeKVData && deno task generate && deno task generateSlim && deno run --watch --allow-net --allow-read --unstable-kv server/main.ts",
"prod": "deno task writeKVData && deno task generate && deno task generateSlim"
"prod": "deno task writeKVData && deno task generate && deno task generateSlim",
"writeKVData": "deno run --allow-write --unstable-kv server/write-data.ts"
},
"imports": {
"@11ty/eleventy": "npm:@11ty/eleventy@canary",
Expand Down
20 changes: 0 additions & 20 deletions eleventy.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion server/write-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ const data = `export default {
likes: ${likes}
}`;

await Deno.writeTextFile("./src/_data/likes.js", data);
await Deno.writeTextFile("./src/_data/likes.mjs", data);
3 changes: 0 additions & 3 deletions src/_data/likes.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/_data/meta.js

This file was deleted.

106 changes: 54 additions & 52 deletions src/_includes/webc/c-header.webc

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions src/content/content.11tydata.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/src.11tydata.js

This file was deleted.

0 comments on commit 70f82c8

Please sign in to comment.