-
Notifications
You must be signed in to change notification settings - Fork 35
/
project.tiny
53 lines (53 loc) · 2.05 KB
/
project.tiny
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
develop:
actions:
- name: Unity 开发
actions:
- name: dev
description: 启动开发编译服务
title: 项目脚本编译服务
command: yarn webpack --config webpack.config.js --watch --env esbuild=true
actions:
- name: start-webgl
description: 启动 WebGL 端口
title: WebGL端口
command:
- yarn http-server -c-1 -p 3100
- name: webapi
description: 启动 webapi 兼容层编译服务
title: webapi 兼容层编译服务
command: yarn webpack --config webpack.config.js --watch --env entry=webapi esbuild=true
- name: test
description: 启动单元测试编译服务
title: 单元测试编译服务
command: yarn webpack --config webpack.config.js --watch --env entry=test esbuild=true
- name: CLI 工具
actions:
- name: 编译 CLI 工具
command:
- yarn install
- yarn webpack --config tools/webpack.config.js --env esbuild=true target=ES2020
- name: dev
title: CLI 编译服务
description: 启动编译服务
command: yarn webpack --config tools/webpack.config.js --watch --env esbuild=true target=ES2020
- name: 优化
description: 静态代码分析
actions:
- name: lint
description: 执行 ESLint 代码分析
command: yarn eslint . --ext .ts
- name: lint:fix
description: 执行 ESLint 自动修正
command: yarn eslint . --ext .ts --fix
publish:
actions:
- name: Unity WebGL
actions:
- name: inject-webgl
description: 注入Web/抖音小游戏
title: 注入 puerts-webgl 代码
command: node ./tools/bin/cli.js unity-webgl inject-webgl --root=Build/webgl
- name: inject-wxgame
description: 注入微信小游戏
title: 注入 puerts-minigame 代码
command: node ./tools/bin/cli.js unity-webgl inject-minigame --root=Build/minigame