Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>轻娱工具集New to Visual Studio Code? Get it now.
轻娱工具集

轻娱工具集

Geequlim

|
189 installs
| (1) | Free
轻娱工具集
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

轻娱网络 VSCode 工具集

命令

创建 tiny-game-kit 项目

基于小游戏模板创建游戏项目,提供项目建立向导。

使用方式
  1. 按下 Ctrl+Shit+P 打开命令面板,键入 创建游戏
  2. 执行 创建游戏项目 命令,根据向导提示完成项目建立

命令面板

用于一键执行项目常用指令,可以根据项目需要配置指令。当项目内存在 project.tiny 文件时激活该功能,此文件用于配置面板内的命令。

通过 develop, publish 和 tools 字段配置 开发, 发布 和 工具 三个面板内的命令内容。配置使用 yaml 语言, 数据结构如下所示的树形配置数据。

interface ICommand {
	/** 命令名称, 展示在命令面板中的标题 */
	name: string;
	/** 命令执行终端面板的标题 */
	title?: string;
	/** 命令描述,命令名称后的灰色描述信息 */
	description?: string;
	/** 鼠标悬浮后的提示信息 */
	tooltip?: string;
	/** 命令的执行内容,用于包含子任务可以不填 */
	command?: string | string[];
	/** 子任务列表 */
	actions?: ICommand[];
}
查看配置示例
# project.tiny 文件
develop:
  actions:
    - name: LayaAir 开发
      actions:
        - name: dev
          description: 启动开发编译服务
          command: yarn concurrently -k "yarn serve" "yarn webpack --config laya/webpack.config.js --watch --env esbuild=true entry=develop ws=3102"
        - name: dev:full
          description: 编译全部平台组件
          command: yarn concurrently -k "yarn serve" "yarn webpack --config laya/webpack.config.js --watch --env esbuild=true entry=all ws=3102"
        - name: 生成 Laya3D 代码
          description: 从 Unity 导出的资源生成绑定代码
          command: node tools/bin/cli.js laya laya/laya3d.yaml
        - name: FairyGUI 导出
          description: 需要激活专业版本 FairyGUI
          command: node tools/bin/cli.js fairygui laya

    - name: CLI 工具
      actions:
        - name: dev
          description: 启动编译服务
          command: yarn webpack --config tools/webpack.config.js --watch --env esbuild=true target=ES2020

    - name: Unity 开发
      actions:
        - name: dev
          description: 启动开发编译服务
          command: yarn concurrently -k "yarn serve" "yarn webpack --config unity/webpack.config.js --watch --env ws=3102 esbuild=true entry=dev"
        - name: dev:full
          description: 启动编译全部服务
          command: yarn concurrently -k "yarn serve" "yarn webpack --config laya/webpack.config.js --watch --env esbuild=true entry=all ws=3102"

publish:
  actions:
    - name: LayaAir 小游戏
      actions:
        - name: H5 Web 版
          command: node tools/bin/cli.js publish laya web
        - name: 字节小游戏
          command: node tools/bin/cli.js publish laya bytedance
        - name: 微信小游戏
          command: node tools/bin/cli.js publish laya wechat
    - name: LayaNative 安卓
      actions:
        - name: 无第三方SDK
          command: node tools/bin/cli.js publish laya android-bare
        - name: 233乐园
          command: node tools/bin/cli.js publish laya android_233
tools:
  actions:
    - name: 合并框架
      description: 合并前确认git工作区是干净的
      command: # 逐个执行多个命令
        - git fetch upstream
        - git merge upstream/master
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft