Sublime-style Build-n versioning + About box
Build n = commit count, baked at build time into a gitignored version.gen.ts (postinstall + all build scripts regenerate it). About lives in the macOS app menu and as a footer row in the options popover (the cross-platform path), showing build, commit, date and engines. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+11
-5
@@ -3,13 +3,17 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"workspaces": ["ui"],
|
||||
"workspaces": [
|
||||
"ui"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "bun scripts/dev.ts",
|
||||
"dev": "bun scripts/gen-version.ts && bun scripts/dev.ts",
|
||||
"dev:ui": "bun run --cwd ui start",
|
||||
"build:ui": "bun run --cwd ui build",
|
||||
"build": "bun run build:ui && bunx electrobun build",
|
||||
"start": "bun run build:ui && bunx electrobun dev"
|
||||
"build": "bun scripts/gen-version.ts && bun run build:ui && bunx electrobun build",
|
||||
"start": "bun scripts/gen-version.ts && bun run build:ui && bunx electrobun dev",
|
||||
"postinstall": "bun scripts/gen-version.ts",
|
||||
"release": "bun scripts/release.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"electrobun": "1.18.1",
|
||||
@@ -22,5 +26,7 @@
|
||||
"@types/ssh2": "^1.15.5",
|
||||
"typescript": "~5.9.3"
|
||||
},
|
||||
"trustedDependencies": ["@parcel/watcher"]
|
||||
"trustedDependencies": [
|
||||
"@parcel/watcher"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user