Skip to content

Commit c10c017

Browse files
committed
Fix app release docs asset build
1 parent 5a732ae commit c10c017

6 files changed

Lines changed: 66 additions & 57 deletions

File tree

.facts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,15 @@
521521
- label: Harbor App release packaging uses a pinned Bun version instead of latest so macOS and Windows app builds are reproducible across runner image updates
522522
command: node -e 'const fs=require("fs"); const src=fs.readFileSync(".github/workflows/app-release.yml","utf8"); if (!src.includes("oven-sh/setup-bun@v2")) process.exit(1); if (!/bun-version:\s*1\.3\.9/.test(src)) process.exit(1); if (/bun-version:\s*latest/.test(src)) process.exit(1);'
523523
tags: [spec, app-install]
524+
- label: Harbor App Bun lock resolves the same Vite and Tauri frontend build tool versions as package-lock so release packaging does not run stale cross-platform build tooling
525+
command: cd app && bun pm ls | rg -q 'vite@5\.4\.21' && bun pm ls | rg -q '@vitejs/plugin-react@4\.7\.0' && bun pm ls | rg -q '@tauri-apps/cli@2\.11\.2'
526+
tags: [spec, app-install]
527+
- label: Harbor App disables DaisyUI build logs so release packaging does not emit wide Unicode output from Tailwind generation
528+
command: node -e 'const fs=require("fs"); const src=fs.readFileSync("app/tailwind.config.js","utf8"); if (!/logs:\s*false/.test(src) || /logs:\s*true/.test(src)) process.exit(1);'
529+
tags: [spec, app-install]
530+
- label: Harbor App service docs raw-import only text documentation files so release builds do not parse binary docs assets as raw modules
531+
command: node -e 'const fs=require("fs"); const src=fs.readFileSync("app/src/service/ServiceDocs.tsx","utf8"); if (!src.includes("import.meta.glob(\"/src/docs/*.{md,yml,yaml}\"") || src.includes("import.meta.glob(\"/src/docs/*\"")) process.exit(1);'
532+
tags: [spec, app-install]
524533

525534
## setup
526535
- label: Harbor App exposes a centralized setup gate backed by typed Tauri setup commands before Harbor-dependent providers mount

app/bun.lockb

1.32 KB
Binary file not shown.

app/package-lock.json

Lines changed: 52 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"devDependencies": {
3737
"@types/react": "^18.3.19",
3838
"@types/react-dom": "^18.3.5",
39-
"@vitejs/plugin-react": "^4.3.4",
39+
"@vitejs/plugin-react": "^4.7.0",
4040
"typescript": "^5.8.2",
41-
"vite": "^5.4.14",
42-
"@tauri-apps/cli": "^2.4.0"
41+
"vite": "^5.4.21",
42+
"@tauri-apps/cli": "^2.11.2"
4343
}
4444
}

app/src/service/ServiceDocs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Markdown from "@uiw/react-markdown-preview";
22
import { HarborService } from "../serviceMetadata";
33
import { useEffect, useState } from "react";
44

5-
const docsFiles = import.meta.glob("/src/docs/*", { query: "?raw" });
5+
const docsFiles = import.meta.glob("/src/docs/*.{md,yml,yaml}", { query: "?raw" });
66

77
const transformUrl = (url: string) => {
88
if (url.startsWith(".")) {

app/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
styled: true,
4949
utils: true,
5050
prefix: "",
51-
logs: true,
51+
logs: false,
5252
themeRoot: ":root",
5353
},
5454
};

0 commit comments

Comments
 (0)