mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
- Replace incorrect OnStartup hook with actual v3 lifecycle mechanisms - Document Services with ServiceStartup/ServiceShutdown interfaces - Document application-level hooks: ShouldQuit, OnShutdown, PostShutdown - Document event-based lifecycle with OnApplicationEvent and OnWindowEvent - Document window hooks with RegisterHook for cancellable events - Add correct platform-specific defaults for quit-on-last-window-close - Add JavaScript example to services Quick Start - Make Taskfile dev task depend on setup task 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
896 B
YAML
36 lines
896 B
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
vars:
|
|
# Change this to switch package managers: bun, npm, pnpm, yarn
|
|
PKG_MANAGER: bun
|
|
|
|
tasks:
|
|
|
|
setup:
|
|
summary: Setup the project (including D2 diagram tool)
|
|
preconditions:
|
|
- sh: '{{.PKG_MANAGER}} --version'
|
|
msg: "Looks like {{.PKG_MANAGER}} isn't installed."
|
|
- sh: 'go version'
|
|
msg: "Go is not installed. Install from https://go.dev/dl/"
|
|
cmds:
|
|
- '{{.PKG_MANAGER}} install'
|
|
- go install oss.terrastruct.com/d2@latest
|
|
- echo "✓ Setup complete. D2 installed to $(go env GOPATH)/bin/d2"
|
|
|
|
dev:
|
|
summary: Run the dev server
|
|
deps: [setup]
|
|
cmds:
|
|
- '{{.PKG_MANAGER}} run dev'
|
|
|
|
build:
|
|
summary: Build the docs
|
|
preconditions:
|
|
- sh: '{{.PKG_MANAGER}} --version'
|
|
msg: "Looks like {{.PKG_MANAGER}} isn't installed."
|
|
cmds:
|
|
- '{{.PKG_MANAGER}} run build'
|
|
|