1
0

Taskfile.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: '3'
  2. vars:
  3. APP_NAME: "mpckit"
  4. BIN_DIR: "bin"
  5. PACKAGE_MANAGER: '{{.PACKAGE_MANAGER | default "npm"}}'
  6. VITE_PORT: '{{.WAILS_VITE_PORT | default 9245}}'
  7. # Target OS for build/package/run. Defaults to the host OS, and is overridden
  8. # by `wails3 build GOOS=...` (or the GOOS env var) for cross-compilation. The
  9. # tasks below dispatch to the matching platform Taskfile via this variable.
  10. GOOS: '{{.GOOS | default OS}}'
  11. includes:
  12. common: ./build/Taskfile.yml
  13. windows: ./build/windows/Taskfile.yml
  14. darwin: ./build/darwin/Taskfile.yml
  15. linux: ./build/linux/Taskfile.yml
  16. tasks:
  17. build:
  18. summary: Builds the application
  19. cmds:
  20. - task: "{{.GOOS}}:build"
  21. package:
  22. summary: Packages a production build of the application
  23. cmds:
  24. - task: "{{.GOOS}}:package"
  25. run:
  26. summary: Runs the application
  27. cmds:
  28. - task: "{{.GOOS}}:run"
  29. dev:
  30. summary: Runs the application in development mode
  31. cmds:
  32. - wails3 dev -config ./build/config.yml -port {{.VITE_PORT}}
  33. build:server:
  34. summary: Builds the application in server mode (no GUI, HTTP server only)
  35. cmds:
  36. - task: common:build:server
  37. run:server:
  38. summary: Runs the application in server mode
  39. cmds:
  40. - task: common:run:server