5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 02:31:15 +08:00
wails/v3/internal/runtime/Taskfile.yaml
2025-02-27 00:30:48 +01:00

57 lines
1.3 KiB
YAML

# https://taskfile.dev
version: "3"
tasks:
install-deps:
internal: true
dir: desktop/@wailsio/runtime
sources:
- package.json
cmds:
- npm install
check:
dir: desktop/@wailsio/runtime
deps:
- install-deps
cmds:
- npm run check
test:
dir: desktop/@wailsio/runtime
deps:
- install-deps
cmds:
- npm test
build:debug:
internal: true
cmds:
- npx esbuild@latest desktop/@wailsio/runtime/src/index.ts --inject:desktop/compiled/main.js --format=esm --target=safari11 --bundle --ignore-annotations --tree-shaking=true --sourcemap=inline --outfile=../assetserver/bundledassets/runtime.debug.js --define:DEBUG=true
build:production:
internal: true
cmds:
- npx esbuild@latest desktop/@wailsio/runtime/src/index.ts --inject:desktop/compiled/main.js --format=esm --target=safari11 --bundle --ignore-annotations --tree-shaking=true --minify --outfile=../assetserver/bundledassets/runtime.js --define:DEBUG=false --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