transone-cli 0.5.0 → 0.6.1
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/README.md +27 -0
- package/dist/{build-mp-6j38wf4r.js → build-mp-vk5ap2cw.js} +52 -6
- package/dist/{build-mp-6j38wf4r.js.map → build-mp-vk5ap2cw.js.map} +5 -5
- package/dist/cli.js +1 -1
- package/dist/create.d.ts +1 -1
- package/dist/{index-nag8rsrg.js → index-z1sm57t6.js} +30 -5
- package/dist/{index-nag8rsrg.js.map → index-z1sm57t6.js.map} +6 -6
- package/dist/index.js +1 -1
- package/dist/types.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type { MpTargetType, TargetType } from './target/types';
|
|
|
3
3
|
export { MP_TARGET_TYPES, APP_TARGET_TYPES, isAppTargetType, isMpTargetType, isTargetType, TARGET_TYPES, } from './target/types';
|
|
4
4
|
/** 原生 App 目标通用配置。 */
|
|
5
5
|
export interface AppConfig {
|
|
6
|
+
/** 接口请求基础地址(http/https);平台配置可覆盖。 */
|
|
7
|
+
host?: string;
|
|
6
8
|
appName?: string;
|
|
7
9
|
bundleId?: string;
|
|
8
10
|
outDir?: string;
|
|
@@ -13,8 +15,10 @@ export interface AppConfig {
|
|
|
13
15
|
}
|
|
14
16
|
/** 按原生 App 平台分组的配置。 */
|
|
15
17
|
export type AppConfigMap = Partial<Record<AppTargetType, AppConfig>>;
|
|
16
|
-
export type UserAppConfig = AppConfig | AppConfigMap;
|
|
18
|
+
export type UserAppConfig = AppConfig | (AppConfigMap & Pick<AppConfig, 'host'>);
|
|
17
19
|
export interface ResolvedAppConfig {
|
|
20
|
+
/** 接口请求基础地址(http/https);平台配置可覆盖。 */
|
|
21
|
+
host?: string;
|
|
18
22
|
appName: string;
|
|
19
23
|
bundleId: string;
|
|
20
24
|
outDir: string;
|
|
@@ -29,6 +33,8 @@ export interface ProxyOptions {
|
|
|
29
33
|
}
|
|
30
34
|
/** 小程序目标端通用配置(--target mp-*)。 */
|
|
31
35
|
export interface MiniProgramConfig {
|
|
36
|
+
/** 接口请求基础地址(http/https);平台配置可覆盖。 */
|
|
37
|
+
host?: string;
|
|
32
38
|
/** 小程序 appid;默认 "touristappid"(平台开发工具测试号/占位 ID)。 */
|
|
33
39
|
appId?: string;
|
|
34
40
|
/** 小程序产物目录;默认 dist/build/{target}。 */
|
|
@@ -53,6 +59,8 @@ export interface MiniProgramConfig {
|
|
|
53
59
|
globalData?: Record<string, unknown>;
|
|
54
60
|
}
|
|
55
61
|
export interface ResolvedMiniProgramConfig {
|
|
62
|
+
/** 接口请求基础地址(http/https);平台配置可覆盖。 */
|
|
63
|
+
host?: string;
|
|
56
64
|
appId: string;
|
|
57
65
|
outDir: string;
|
|
58
66
|
navigationBarTitleText: string;
|