Phase 0 foundation for Docwell, an open-source knowledge base: - Database: PocketBase v0.40.6 with initial schema migrations; users is the built-in auth collection, plus a hook for token checks and env-driven app URL/SMTP settings - Server: Go API (health, version, auth endpoints forwarded to PocketBase, admin user list) with an embedded Vue admin panel - Web-App: Go static server and Vue/Tailwind app with Tiptap editor, sign-in, sign-up, password reset and email verification (EN/PL) - Desktop-App: Wails v3 host reusing the web app - Phone-App: Flutter app with sign-in - Shared packages (editor, ui, api-client), OpenAPI spec, Docker compose (separate services and all-in-one), GitHub Actions CI - Docs: feature inventory and architecture/build plan Licensed under AGPL-3.0-or-later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
version: '3'
|
|
|
|
vars:
|
|
APP_NAME: "docwell-desktop"
|
|
BIN_DIR: "bin"
|
|
PACKAGE_MANAGER: '{{.PACKAGE_MANAGER | default "npm"}}'
|
|
VITE_PORT: '{{.WAILS_VITE_PORT | default 9245}}'
|
|
# Target OS for build/package/run. Defaults to the host OS, and is overridden
|
|
# by `wails3 build GOOS=...` (or the GOOS env var) for cross-compilation. The
|
|
# tasks below dispatch to the matching platform Taskfile via this variable.
|
|
GOOS: '{{.GOOS | default OS}}'
|
|
|
|
includes:
|
|
common: ./build/Taskfile.yml
|
|
windows: ./build/windows/Taskfile.yml
|
|
darwin: ./build/darwin/Taskfile.yml
|
|
linux: ./build/linux/Taskfile.yml
|
|
ios: ./build/ios/Taskfile.yml
|
|
android: ./build/android/Taskfile.yml
|
|
|
|
tasks:
|
|
build:
|
|
summary: Builds the application
|
|
cmds:
|
|
- task: "{{.GOOS}}:build"
|
|
|
|
package:
|
|
summary: Packages a production build of the application
|
|
cmds:
|
|
- task: "{{.GOOS}}:package"
|
|
|
|
run:
|
|
summary: Runs the application
|
|
cmds:
|
|
- task: "{{.GOOS}}:run"
|
|
|
|
dev:
|
|
summary: Runs the application in development mode
|
|
cmds:
|
|
- wails3 dev -config ./build/config.yml -port {{.VITE_PORT}}
|
|
|
|
install:msix:tools:
|
|
summary: Installs tools required for Windows MSIX packaging
|
|
cmds:
|
|
- task: windows:install:msix:tools
|
|
|
|
setup:docker:
|
|
summary: Builds Docker image for cross-compilation (~800MB download)
|
|
cmds:
|
|
- task: common:setup:docker
|
|
|
|
build:server:
|
|
summary: Builds the application in server mode (no GUI, HTTP server only)
|
|
cmds:
|
|
- task: common:build:server
|
|
|
|
run:server:
|
|
summary: Runs the application in server mode
|
|
cmds:
|
|
- task: common:run:server
|
|
|
|
build:docker:
|
|
summary: Builds a Docker image for server mode deployment
|
|
cmds:
|
|
- task: common:build:docker
|
|
|
|
run:docker:
|
|
summary: Builds and runs the Docker image
|
|
cmds:
|
|
- task: common:run:docker
|