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.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/miniprogram-utils/src/constants/index.d.ts +4 -0
- package/dist/miniprogram-utils/src/data/project.d.ts +2 -2
- package/dist/tt-ide-cli/src/features/microgame/utils/package.d.ts +15 -7
- package/dist/tt-ide-cli/src/features/microgame/utils/source.type.d.ts +2 -0
- package/dist/tt-ide-cli/src/types.d.ts +11 -0
- package/package.json +1 -1
@@ -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
|
+
}>;
|
@@ -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;
|