Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

2.9 KB
Raw Blame
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build-debug",
            "type": "shell",
            "command": "cmake",
            "args": [
                "--build",
                "build"
            ],
            "options": {
                "cwd": "${workspaceFolder}"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": ["$gcc"]
        },
        {
            "label": "build-sdk",
            "type": "shell",
            "command": "npm",
            "args": ["run", "build:sdk"],
            "options": {
                "cwd": "${workspaceFolder}"
            },
            "problemMatcher": ["$tsc"]
        },
        {
            "label": "kill-ports",
            "type": "shell",
            "command": "node",
            "args": ["scripts/kill-port.js"],
            "options": {
                "cwd": "${workspaceFolder}/desktop"
            },
            "problemMatcher": []
        },
        {
            "label": "build-editor",
            "type": "shell",
            "command": "pnpm",
            "args": ["build"],
            "options": {
                "cwd": "${workspaceFolder}/editor"
            },
            "dependsOn": ["build-sdk", "kill-ports"],
            "problemMatcher": ["$tsc"]
        },
        {
            "label": "tauri-dev",
            "type": "shell",
            "command": "pnpm",
            "args": ["tauri", "dev"],
            "options": {
                "cwd": "${workspaceFolder}/desktop"
            },
            "isBackground": true,
            "problemMatcher": {
                "pattern": {
                    "regexp": "^$"
                },
                "background": {
                    "activeOnStart": true,
                    "beginsPattern": "^.*Running.*$",
                    "endsPattern": "^.*Finished.*$"
                }
            }
        },
        {
            "label": "tauri-dev-release",
            "type": "shell",
            "command": "pnpm",
            "args": ["tauri", "dev", "--release"],
            "options": {
                "cwd": "${workspaceFolder}/desktop"
            },
            "isBackground": true,
            "problemMatcher": {
                "pattern": {
                    "regexp": "^$"
                },
                "background": {
                    "activeOnStart": true,
                    "beginsPattern": "^.*Running.*$",
                    "endsPattern": "^.*Finished.*$"
                }
            }
        },
        {
            "label": "build-and-run-tauri",
            "dependsOn": ["build-editor", "tauri-dev"],
            "dependsOrder": "sequence",
            "group": "build"
        },
        {
            "label": "build-and-run-tauri-release",
            "dependsOn": ["build-editor", "tauri-dev-release"],
            "dependsOrder": "sequence",
            "group": "build"
        }
    ]
}