Utilise semantic version for the dashboard as well.

This commit is contained in:
2025-12-16 00:19:00 +00:00
parent bc4e9e66ae
commit a71c61932e
6 changed files with 33 additions and 4 deletions
+1
View File
@@ -29,6 +29,7 @@ coverage.html
ui/node_modules/
ui/dist/
ui/.vite/
ui/package.json
docs/node_modules/
docs/dist/
*.log
+2 -1
View File
@@ -8,7 +8,8 @@ project_name: claude-mnemonic
before:
hooks:
- go mod tidy
# Build Vue dashboard and embed in binary
# Generate versioned package.json from template and build Vue dashboard
- bash -c "sed 's/{{ .Version }}/{{ .Version }}/g' ui/package.json.tpl > ui/package.json"
- bash -c "cd ui && npm ci --silent && npm run build"
- bash -c "rm -rf internal/worker/static && mkdir -p internal/worker/static && cp -r ui/dist/* internal/worker/static/"
+1
View File
@@ -24,6 +24,7 @@ build: dashboard worker hooks mcp
# Build Vue dashboard
dashboard:
@echo "Building Vue dashboard..."
@sed 's/{{ .Version }}/$(VERSION)/g' ui/package.json.tpl > ui/package.json
@cd ui && npm install --silent && npm run build
@rm -rf internal/worker/static
@mkdir -p internal/worker/static
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "claude-mnemonic-dashboard",
"version": "1.0.0",
"version": "v0.6.1-3-gd68a700-dirty",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-mnemonic-dashboard",
"version": "1.0.0",
"version": "v0.6.1-3-gd68a700-dirty",
"dependencies": {
"vue": "^3.5.13"
},
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "claude-mnemonic-dashboard",
"version": "1.0.0",
"version": "v0.6.1-3-gd68a700-dirty",
"private": true,
"type": "module",
"scripts": {
+26
View File
@@ -0,0 +1,26 @@
{
"name": "claude-mnemonic-dashboard",
"version": "{{ .Version }}",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview",
"type-check": "vue-tsc --noEmit"
},
"dependencies": {
"vue": "^3.5.13"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.7.2",
"@types/node": "^22.10.2",
"@vitejs/plugin-vue": "^5.2.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17",
"typescript": "~5.7.2",
"vite": "^6.0.5",
"vue-tsc": "^2.2.0"
}
}