tt-minigame-ide-cli 2.0.15 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -369,3 +369,7 @@ export declare const FRONT_PAGE_EVENT: {
369
369
  VELA_SCHEMA_DOWNLOAD_MINICODE: string;
370
370
  VELA_SCHEMA_DOWNLOAD_MINICODE_FAIL: string;
371
371
  };
372
+ export declare const PROJECT_TECH_TYPE: {
373
+ PLAYABLE_GAME: number;
374
+ GAME: number;
375
+ };
@@ -102,8 +102,8 @@ export interface IProjectConfig extends IProject {
102
102
  * microgame 属于 game 类型
103
103
  * live-plugin 为直播间互动插件
104
104
  */
105
- declare type TechType = 'app' | 'game' | 'unity' | 'liveplugin';
106
- declare type IDEAppTechType = 'microapp' | 'microgame' | 'microapp-minicode' | 'plugin' | 'plugin-minicode' | 'microgame-minicode' | 'liveplugin-minicode' | 'unity' | 'liveplugin' | 'microapp-plugin' | 'microapp-plugin-minicode' | '';
105
+ declare type TechType = 'app' | 'game' | 'unity' | 'liveplugin' | 'playablegame';
106
+ declare type IDEAppTechType = 'microapp' | 'microgame' | 'microapp-minicode' | 'plugin' | 'plugin-minicode' | 'microgame-minicode' | 'liveplugin-minicode' | 'unity' | 'liveplugin' | 'microapp-plugin' | 'microapp-plugin-minicode' | 'playablegame' | 'playablegame-minicode' | '';
107
107
  export declare const PROJECT_TYPE_MAP: Record<string, TechType>;
108
108
  export declare function setIDEAppTechType(type: IDEAppTechType): void;
109
109
  export declare function getIDEAppTechType(): IDEAppTechType;
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 小游戏源码、打包相关
3
3
  */
4
+ import { SizeLimitConfig } from './source.type';
4
5
  import { ProjectConfig } from '@byted/miniprogram-utils/dist/data/project';
5
6
  /** 不参与体积计算的 glob pattern */
6
7
  export declare const PKG_SIZE_IGNORE_GLOBS: string[];
@@ -9,13 +10,7 @@ export declare const PKG_HASH_IGNORE_LIST: string[];
9
10
  /**
10
11
  * 获取上传预览 Settings 配置,支持白名单处理,兜底默认
11
12
  */
12
- export declare const getSizeLimitConfig: (appId: string) => Promise<{
13
- normalTotal: number;
14
- subMain: number;
15
- subPkg: number;
16
- subTotal: number;
17
- openData: number;
18
- }>;
13
+ export declare const getSizeLimitConfig: (appId: string) => Promise<SizeLimitConfig>;
19
14
  /**
20
15
  * 校验包体大小,支持白名单逻辑,具体限制以 Settings 下发为准
21
16
  * 默认:普通包最大 8MB,开放数据域 & 分包主包最大 4MB,子包不限制,总包 20MB
@@ -31,3 +26,16 @@ export declare const checkUCAppId: (appId: string) => boolean;
31
26
  export declare const checkAppId: (appId: string) => boolean;
32
27
  export declare const getAppId: (projectPath: string) => Promise<string>;
33
28
  export declare const validateAppId: (appId: string) => Promise<void>;
29
+ export declare const getTechType: (appId: string) => Promise<number>;
30
+ export declare const isPlayableGame: (appId: string) => Promise<boolean>;
31
+ export declare const getConfigUrl: (appid: string) => Promise<{
32
+ makeSchema: string;
33
+ compileProgress: string;
34
+ preview: string;
35
+ upload: string;
36
+ versionInfo: string;
37
+ sizeLimit: string;
38
+ unityCompileProgress: string;
39
+ unityPreview: string;
40
+ getChannelNumber: string;
41
+ }>;
@@ -28,6 +28,8 @@ export declare type SizeLimitConfig = {
28
28
  subTotal: number;
29
29
  /** 开放数据域包最大 MB 数 */
30
30
  openData: number;
31
+ /** 试玩游戏最大 MB 数 */
32
+ demo: number;
31
33
  };
32
34
  export declare type TmgSdkInfo = {
33
35
  latestSDKUrl: string;
@@ -34,6 +34,17 @@ export interface TMACliConfig {
34
34
  unityPreview: string;
35
35
  getChannelNumber: string;
36
36
  };
37
+ playablegameUrl: {
38
+ makeSchema: string;
39
+ compileProgress: string;
40
+ preview: string;
41
+ upload: string;
42
+ versionInfo: string;
43
+ sizeLimit: string;
44
+ unityCompileProgress: string;
45
+ unityPreview: string;
46
+ getChannelNumber: string;
47
+ };
37
48
  env: {
38
49
  type: 'online' | 'ppe' | 'boe';
39
50
  channel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-minigame-ide-cli",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "Command line interface for micro app development",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",