mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-06-05 23:03:55 +00:00
Utilise semantic version for the dashboard as well.
This commit is contained in:
@@ -29,6 +29,7 @@ coverage.html
|
||||
ui/node_modules/
|
||||
ui/dist/
|
||||
ui/.vite/
|
||||
ui/package.json
|
||||
docs/node_modules/
|
||||
docs/dist/
|
||||
*.log
|
||||
|
||||
+2
-1
@@ -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/"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "claude-mnemonic-dashboard",
|
||||
"version": "1.0.0",
|
||||
"version": "v0.6.1-3-gd68a700-dirty",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user