Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Feb 15, 2024
1 parent d3c58e8 commit e0bc14d
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 43 deletions.
Binary file modified docs/bun.lockb
Binary file not shown.
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion docs/src/docs/learn/index.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
2 changes: 1 addition & 1 deletion docs/src/docs/modules/index.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
2 changes: 1 addition & 1 deletion docs/src/index.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
4 changes: 1 addition & 3 deletions docs/src/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div class="not-prose my-24 flex flex-col items-center justify-center gap-16">
<h1
class="text-center font-antique text-2xl font-bold text-primary md:text-5xl"
>
<h1 class="text-center text-2xl font-bold text-primary md:text-5xl">
Build Time Rendering Without Templates
</h1>
<div class="flex flex-col gap-6 md:flex-row">
Expand Down
6 changes: 2 additions & 4 deletions docs/src/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
<meta name="description" content="Build Time Rendering Without Templates" />
</head>
<body
class="prose prose-slate mx-auto max-w-[80ch] break-words bg-background font-humanist-classical text-foreground selection:bg-foreground selection:text-background prose-headings:font-antique prose-pre:-mx-6 prose-pre:rounded-none prose-pre:px-8 prose-pre:sm:mx-0 prose-pre:sm:rounded-md prose-pre:sm:px-4"
class="prose prose-slate mx-auto max-w-[80ch] break-words bg-background text-foreground selection:bg-foreground selection:text-background prose-pre:-mx-6 prose-pre:rounded-none prose-pre:px-8 prose-pre:sm:mx-0 prose-pre:sm:rounded-md prose-pre:sm:px-4"
>
<header class="not-prose flex items-center justify-between gap-6 p-6">
<a class="block font-antique text-2xl font-bold no-underline" href="/">
domco
</a>
<a class="block text-2xl font-bold no-underline" href="/">domco</a>
<ul class="flex items-center gap-4">
<li>
<a href="/docs/learn" class="link">Learn</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/style.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Binary file modified packages/create-domco/bun.lockb
Binary file not shown.
9 changes: 4 additions & 5 deletions packages/create-domco/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-domco/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",`
: ""
Expand Down
Binary file modified packages/domco/bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions packages/domco/docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Promise\<any>

#### 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)

___

Expand Down Expand Up @@ -104,7 +104,7 @@ Promise\<any>

#### 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)

___

Expand All @@ -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

Expand Down Expand Up @@ -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)

___

Expand Down Expand Up @@ -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)
19 changes: 9 additions & 10 deletions packages/domco/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
}
5 changes: 2 additions & 3 deletions packages/domco/scripts/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
4 changes: 3 additions & 1 deletion packages/domco/util/transpileImport/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export async function transpileImport<T>(filePath: string): Promise<T> {
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);
Expand Down

0 comments on commit e0bc14d

Please sign in to comment.