diff --git a/docs/bun.lockb b/docs/bun.lockb
index c22bb57..67f4704 100755
Binary files a/docs/bun.lockb and b/docs/bun.lockb differ
diff --git a/docs/package.json b/docs/package.json
index fa08518..2174655 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -7,19 +7,19 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
- "deploy": "vc --prod"
+ "deploy": "bun run build && vc --prod"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
- "@types/node": "^20.10.7",
- "autoprefixer": "^10.4.16",
+ "@types/node": "^20.11.18",
+ "autoprefixer": "^10.4.17",
"domco": "../dist/domco",
- "prettier": "^3.1.1",
+ "prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
- "robino": "^0.0.39",
+ "robino": "^0.1.0",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
- "uico": "^0.2.1",
- "vite": "^5.0.11"
+ "uico": "^0.2.2",
+ "vite": "^5.1.3"
}
}
diff --git a/docs/src/docs/learn/index.build.ts b/docs/src/docs/learn/index.build.ts
index b045cb4..60528aa 100644
--- a/docs/src/docs/learn/index.build.ts
+++ b/docs/src/docs/learn/index.build.ts
@@ -5,7 +5,7 @@ import fs from "node:fs/promises";
export const build: Build = async ({ document }) => {
const md = await fs.readFile(`src/docs/learn/learn.md`, "utf-8");
- const { html } = process(md);
+ const { html } = await process(md);
const article = document.querySelector("article");
if (article) article.innerHTML = html;
};
diff --git a/docs/src/docs/modules/index.build.ts b/docs/src/docs/modules/index.build.ts
index 154c41d..804e6bd 100644
--- a/docs/src/docs/modules/index.build.ts
+++ b/docs/src/docs/modules/index.build.ts
@@ -5,7 +5,7 @@ import fs from "node:fs/promises";
export const build: Build = async ({ document }) => {
const md = await fs.readFile(`../packages/domco/docs/modules.md`, "utf-8");
- const { html } = process(md);
+ const { html } = await process(md);
const article = document.querySelector("article");
if (article) article.innerHTML = html;
};
diff --git a/docs/src/index.build.ts b/docs/src/index.build.ts
index b9a7fc5..7d67dce 100644
--- a/docs/src/index.build.ts
+++ b/docs/src/index.build.ts
@@ -4,7 +4,7 @@ import fs from "fs/promises";
export const build: Build = async ({ document }) => {
const md = await fs.readFile("src/home.md", "utf-8");
- const { html } = process(md);
+ const { html } = await process(md);
const article = document.querySelector("article");
if (article) article.innerHTML = html;
};
diff --git a/docs/src/index.html b/docs/src/index.html
index 5febd1a..bd4d7ab 100644
--- a/docs/src/index.html
+++ b/docs/src/index.html
@@ -1,7 +1,5 @@
-
+
Build Time Rendering Without Templates
diff --git a/docs/src/layout.html b/docs/src/layout.html
index e2b5322..8d44611 100644
--- a/docs/src/layout.html
+++ b/docs/src/layout.html
@@ -10,12 +10,10 @@
-
- domco
-
+ domco
-
Learn
diff --git a/docs/src/style.postcss b/docs/src/style.postcss
index 6c1e855..27b4bb3 100644
--- a/docs/src/style.postcss
+++ b/docs/src/style.postcss
@@ -5,7 +5,7 @@
@layer base {
/** https://uico.robino.dev */
:root {
- --background: 99.5% 0.005 257; /* slate-50 */
+ --background: 99.9% 0.005 257; /* almost white */
--foreground: 37% 0.05 257; /* 700 */
--muted: 93% 0.015 257; /* 200 */
--muted-foreground: 44% 0.05 257; /* 600 */
diff --git a/packages/create-domco/bun.lockb b/packages/create-domco/bun.lockb
index dd3d3ec..4422079 100755
Binary files a/packages/create-domco/bun.lockb and b/packages/create-domco/bun.lockb differ
diff --git a/packages/create-domco/package.json b/packages/create-domco/package.json
index e63c208..d73d703 100644
--- a/packages/create-domco/package.json
+++ b/packages/create-domco/package.json
@@ -1,7 +1,7 @@
{
"name": "create-domco",
"description": "Create a new domco project",
- "version": "0.0.27",
+ "version": "0.0.28",
"type": "module",
"types": "./index.d.ts",
"main": "./index.js",
@@ -27,11 +27,10 @@
"which-pm-runs": "^1.1.0"
},
"devDependencies": {
- "@types/node": "^20.10.7",
+ "@types/node": "^20.11.18",
"@types/which-pm-runs": "^1.0.2",
- "bun-types": "latest",
- "prettier": "^3.1.1",
- "robino": "^0.0.39",
+ "prettier": "^3.2.5",
+ "robino": "^0.1.0",
"typescript": "^5.3.3"
},
"prettier": "robino/config/prettier"
diff --git a/packages/create-domco/template/index.ts b/packages/create-domco/template/index.ts
index 791470c..49038d0 100644
--- a/packages/create-domco/template/index.ts
+++ b/packages/create-domco/template/index.ts
@@ -25,7 +25,7 @@ export const getFiles = (options: {
},
"devDependencies": {
"@types/node": "^20.10.7",
- "domco": "^0.3.7",${prettier ? `\n\t\t"prettier": "^3.1.1",` : ""}${
+ "domco": "^0.3.8",${prettier ? `\n\t\t"prettier": "^3.1.1",` : ""}${
prettier && tailwind
? `\n\t\t"prettier-plugin-tailwindcss": "^0.5.11",`
: ""
diff --git a/packages/domco/bun.lockb b/packages/domco/bun.lockb
index 262d5bc..f290ed2 100755
Binary files a/packages/domco/bun.lockb and b/packages/domco/bun.lockb differ
diff --git a/packages/domco/docs/modules.md b/packages/domco/docs/modules.md
index b49412c..7973da8 100644
--- a/packages/domco/docs/modules.md
+++ b/packages/domco/docs/modules.md
@@ -54,7 +54,7 @@ Promise\
#### Defined in
-[types/index.ts:72](https://github.com/rossrobino/domco/blob/37c6d89/packages/domco/types/index.ts#L72)
+[types/index.ts:72](https://github.com/rossrobino/domco/blob/d3c58e8/packages/domco/types/index.ts#L72)
___
@@ -104,7 +104,7 @@ Promise\
#### Defined in
-[types/index.ts:23](https://github.com/rossrobino/domco/blob/37c6d89/packages/domco/types/index.ts#L23)
+[types/index.ts:23](https://github.com/rossrobino/domco/blob/d3c58e8/packages/domco/types/index.ts#L23)
___
@@ -129,7 +129,7 @@ Context about the current page to utilize during the build
#### Defined in
-[types/index.ts:33](https://github.com/rossrobino/domco/blob/37c6d89/packages/domco/types/index.ts#L33)
+[types/index.ts:33](https://github.com/rossrobino/domco/blob/d3c58e8/packages/domco/types/index.ts#L33)
## Functions
@@ -168,7 +168,7 @@ export const build: Build = async (window) => {
#### Defined in
-[helpers/addBlocks/index.ts:23](https://github.com/rossrobino/domco/blob/37c6d89/packages/domco/helpers/addBlocks/index.ts#L23)
+[helpers/addBlocks/index.ts:23](https://github.com/rossrobino/domco/blob/d3c58e8/packages/domco/helpers/addBlocks/index.ts#L23)
___
@@ -204,4 +204,4 @@ prefetch({ prerender: true });
#### Defined in
-[helpers/prefetch/index.ts:24](https://github.com/rossrobino/domco/blob/37c6d89/packages/domco/helpers/prefetch/index.ts#L24)
+[helpers/prefetch/index.ts:24](https://github.com/rossrobino/domco/blob/d3c58e8/packages/domco/helpers/prefetch/index.ts#L24)
diff --git a/packages/domco/package.json b/packages/domco/package.json
index fcd63f1..7fe9aed 100644
--- a/packages/domco/package.json
+++ b/packages/domco/package.json
@@ -1,7 +1,7 @@
{
"name": "domco",
"description": "Build-Time Rendering Without Templates",
- "version": "0.3.7",
+ "version": "0.3.8",
"type": "module",
"keywords": [
"vite-plugin"
@@ -37,20 +37,19 @@
"license": "MIT",
"devDependencies": {
"@types/html-minifier-terser": "^7.0.2",
- "@types/node": "^20.10.7",
- "@types/web": "^0.0.134",
- "bun-types": "latest",
- "prettier": "^3.1.1",
- "robino": "^0.0.39",
- "typedoc": "^0.25.7",
+ "@types/node": "^20.11.18",
+ "@types/web": "^0.0.139",
+ "prettier": "^3.2.5",
+ "robino": "^0.1.0",
+ "typedoc": "^0.25.8",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.3.3"
},
"dependencies": {
- "esbuild": "^0.19.11",
+ "esbuild": "^0.20.0",
"html-minifier-terser": "^7.2.0",
- "linkedom": "^0.16.6",
- "vite": "^5.0.11"
+ "linkedom": "^0.16.8",
+ "vite": "^5.1.3"
},
"prettier": "robino/config/prettier"
}
diff --git a/packages/domco/scripts/docs/index.ts b/packages/domco/scripts/docs/index.ts
index d79d95c..0eceb72 100644
--- a/packages/domco/scripts/docs/index.ts
+++ b/packages/domco/scripts/docs/index.ts
@@ -10,13 +10,12 @@ const removeMdLinks = async (dirPath: string) => {
await removeMdLinks(filePath);
}
if (filePath.endsWith("md")) {
- const mdFile = Bun.file(filePath);
- let text = await mdFile.text();
+ let text = await fs.readFile(filePath, "utf-8");
text = text.replaceAll(".md", "");
text = text.replaceAll("html-kit", "domco");
text = text.replaceAll("\\>", ">");
text = text.replaceAll("# domco", "");
- await Bun.write(filePath, text);
+ await fs.writeFile(filePath, text);
console.log("modified: " + filePath);
}
}
diff --git a/packages/domco/util/transpileImport/index.ts b/packages/domco/util/transpileImport/index.ts
index b3a3806..dd4c516 100644
--- a/packages/domco/util/transpileImport/index.ts
+++ b/packages/domco/util/transpileImport/index.ts
@@ -47,7 +47,9 @@ export async function transpileImport(filePath: string): Promise {
await fs.writeFile(tempFilePath, firstFile.text);
// import file as a module -- file url conversion required for windows
- const module = await import(String(new URL(pathToFileURL(tempFilePath))));
+ const module = await import(
+ String(new URL(pathToFileURL(tempFilePath).href))
+ );
// delete temp file
await fs.unlink(tempFilePath);