5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-20 10:59:30 +08:00
wails/v3/internal/runtime/Taskfile.yaml
2024-01-08 21:22:33 +11:00

49 lines
884 B
YAML

# https://taskfile.dev
version: "3"
tasks:
install-deps:
internal: true
sources:
- package.json
cmds:
- npm install
test:
cmds:
- npx vitest run
update:
cmds:
- npx npm-check-updates -u
build:debug:
internal: true
cmds:
- npx esbuild@latest desktop/main.js --bundle --tree-shaking=true --sourcemap=inline --outfile=runtime_debug.js --define:DEBUG=true
build:production:
internal: true
cmds:
- npx esbuild@latest desktop/main.js --bundle --tree-shaking=true --minify --outfile=runtime.js --drop:console
build:all:
internal: true
deps:
- build:debug
- build:production
cmds:
- cmd: echo "Build Complete."
build:
deps:
- install-deps
cmds:
- task: build:all
generate:events:
dir: ../../tasks/events
cmds:
- go run generate.go