5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-20 19:09:29 +08:00
wails/v3/internal/runtime/Taskfile.yaml
Fabio Massaioli 2b9891da2c
[v3] Update and fix runtime JS API (#3295)
* Cleanup bundled runtime entry point

* Fix JS representation of Screen struct

* Expose IsFocused method in Window interface

* Update JS window API

* Fix cleanup of WML listeners

* Bundle runtime as ES module

* Update runtime dependencies

* Update runtime types and events

* Update bundled runtime

* Update changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-20 20:30:14 +11:00

50 lines
1.1 KiB
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/@wailsio/runtime/src/index.js --inject:desktop/compiled/main.js --format=esm --bundle --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.js --inject:desktop/compiled/main.js --format=esm --bundle --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