diff --git a/.gitignore b/.gitignore index 8c1cd7f..4c7ab08 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,8 @@ tasks /core /i18n-validate cmd/bugseti/bugseti +internal/core-ide/core-ide +.angular/ patch_cov.* go.work.sum diff --git a/Taskfile.yml b/Taskfile.yml index 2240318..dbce0de 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -220,6 +220,29 @@ tasks: - go build -tags nowatcher -o ../../bin/core-app . - ../../bin/core-app + # --- BugSETI (Wails v3 System Tray) --- + bugseti:dev: + desc: "Build and run BugSETI (production binary with embedded frontend)" + dir: cmd/bugseti + cmds: + - cd frontend && npm install && npm run build + - go build -buildvcs=false -o ../../bin/bugseti . + - ../../bin/bugseti + + bugseti:build: + desc: "Build BugSETI production binary" + dir: cmd/bugseti + cmds: + - cd frontend && npm install && npm run build + - go build -trimpath -buildvcs=false -ldflags="-w -s" -o ../../bin/bugseti . + + bugseti:frontend: + desc: "Build BugSETI frontend only" + dir: cmd/bugseti/frontend + cmds: + - npm install + - npm run build + # --- Multi-repo (when in workspace) --- dev:health: desc: "Check health of all repos" diff --git a/cmd/bugseti/build/config.yml b/cmd/bugseti/build/config.yml index 5702192..b55fb12 100644 --- a/cmd/bugseti/build/config.yml +++ b/cmd/bugseti/build/config.yml @@ -1,30 +1,38 @@ # BugSETI Wails v3 Build Configuration +version: '3' -version: "3" - -# Application information -name: "BugSETI" -outputfilename: "bugseti" -description: "Distributed Bug Fixing - like SETI@home but for code" -productidentifier: "io.lethean.bugseti" -productname: "BugSETI" -productcompany: "Lethean" -copyright: "Copyright 2026 Lethean" - -# Development server -devserver: - frontend: "http://localhost:9246" - -# Frontend configuration -frontend: - dir: "frontend" - installcmd: "npm install" - buildcmd: "npm run build" - devcmd: "npm run dev" - -# Build information +# Build metadata info: - companyname: "Lethean" - productversion: "0.1.0" - fileversion: "0.1.0" + companyName: "Lethean" + productName: "BugSETI" + productIdentifier: "io.lethean.bugseti" + description: "Distributed Bug Fixing - like SETI@home but for code" + copyright: "Copyright 2026 Lethean" comments: "Distributed OSS bug fixing application" + version: "0.1.0" + +# Dev mode configuration +dev_mode: + root_path: . + log_level: warn + debounce: 1000 + ignore: + dir: + - .git + - node_modules + - frontend + - bin + file: + - .DS_Store + - .gitignore + - .gitkeep + watched_extension: + - "*.go" + git_ignore: true + executes: + - cmd: go build -buildvcs=false -gcflags=all=-l -o bin/bugseti . + type: blocking + - cmd: cd frontend && npx ng serve --port ${WAILS_FRONTEND_PORT:-9246} + type: background + - cmd: bin/bugseti + type: primary diff --git a/cmd/bugseti/frontend/angular.json b/cmd/bugseti/frontend/angular.json index 18ed963..772dcf8 100644 --- a/cmd/bugseti/frontend/angular.json +++ b/cmd/bugseti/frontend/angular.json @@ -43,8 +43,8 @@ }, { "type": "anyComponentStyle", - "maximumWarning": "2kb", - "maximumError": "4kb" + "maximumWarning": "6kb", + "maximumError": "10kb" } ], "outputHashing": "all"