@react-native-community/cli-types 6.0.0 → 8.0.0-alpha.0
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/build/android.d.ts +19 -17
- package/build/android.d.ts.map +1 -0
- package/build/index.d.ts +19 -125
- package/build/index.d.ts.map +1 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -0
- package/build/ios.d.ts +12 -63
- package/build/ios.d.ts.map +1 -0
- package/package.json +5 -6
- package/LICENSE +0 -21
package/build/android.d.ts
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
export interface AndroidProjectConfig {
|
|
2
2
|
sourceDir: string;
|
|
3
|
-
isFlat: boolean;
|
|
4
|
-
folder: string;
|
|
5
|
-
stringsPath: string;
|
|
6
|
-
manifestPath: string;
|
|
7
|
-
buildGradlePath: string;
|
|
8
|
-
settingsGradlePath: string;
|
|
9
|
-
assetsPath: string;
|
|
10
|
-
mainFilePath: string;
|
|
11
|
-
packageName: string;
|
|
12
|
-
packageFolder: string;
|
|
13
3
|
appName: string;
|
|
4
|
+
packageName: string;
|
|
14
5
|
dependencyConfiguration?: string;
|
|
15
6
|
}
|
|
16
|
-
export declare type AndroidProjectParams =
|
|
17
|
-
|
|
7
|
+
export declare type AndroidProjectParams = {
|
|
8
|
+
sourceDir?: string;
|
|
9
|
+
appName?: string;
|
|
10
|
+
manifestPath?: string;
|
|
11
|
+
packageName?: string;
|
|
12
|
+
dependencyConfiguration?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type AndroidDependencyConfig = {
|
|
18
15
|
sourceDir: string;
|
|
19
|
-
folder: string;
|
|
20
16
|
packageImportPath: string;
|
|
21
17
|
packageInstance: string;
|
|
22
|
-
manifestPath: string;
|
|
23
|
-
packageName: string;
|
|
24
18
|
dependencyConfiguration?: string;
|
|
25
19
|
buildTypes: string[];
|
|
26
|
-
}
|
|
27
|
-
export declare type AndroidDependencyParams =
|
|
20
|
+
};
|
|
21
|
+
export declare type AndroidDependencyParams = {
|
|
22
|
+
sourceDir?: string;
|
|
23
|
+
manifestPath?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
dependencyConfiguration?: string;
|
|
26
|
+
packageImportPath?: string;
|
|
27
|
+
packageInstance?: string;
|
|
28
|
+
buildTypes?: string[];
|
|
29
|
+
};
|
|
28
30
|
//# sourceMappingURL=android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../src/android.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,oBAAY,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams,
|
|
1
|
+
import { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams, IOSProjectInfo } from './ios';
|
|
2
2
|
import { AndroidProjectConfig, AndroidProjectParams, AndroidDependencyConfig, AndroidDependencyParams } from './android';
|
|
3
|
-
import { Ora } from 'ora';
|
|
4
3
|
export declare type Prompt = any;
|
|
5
4
|
export declare type CommandFunction<Args = Object> = (argv: Array<string>, ctx: Config, args: Args) => Promise<void> | void;
|
|
6
5
|
export declare type OptionValue = string | boolean | number;
|
|
@@ -31,143 +30,38 @@ interface PlatformConfig<ProjectConfig, ProjectParams, DependencyConfig, Depende
|
|
|
31
30
|
npmPackageName?: string;
|
|
32
31
|
projectConfig: (projectRoot: string, projectParams: ProjectParams | void) => ProjectConfig | void;
|
|
33
32
|
dependencyConfig: (dependency: string, params: DependencyParams) => DependencyConfig | void;
|
|
34
|
-
linkConfig: () => {
|
|
35
|
-
isInstalled: (projectConfig: ProjectConfig, packageName: string, dependencyConfig: DependencyConfig) => boolean;
|
|
36
|
-
register: (name: string, dependencyConfig: DependencyConfig, params: Object, projectConfig: ProjectConfig) => void;
|
|
37
|
-
unregister: (name: string, dependencyConfig: DependencyConfig, projectConfig: ProjectConfig, otherDependencies: Array<DependencyConfig>) => void;
|
|
38
|
-
copyAssets: (assets: string[], projectConfig: ProjectConfig) => void;
|
|
39
|
-
unlinkAssets: (assets: string[], projectConfig: ProjectConfig) => void;
|
|
40
|
-
};
|
|
41
33
|
}
|
|
42
|
-
|
|
34
|
+
declare type AndroidPlatformConfig = PlatformConfig<AndroidProjectConfig, AndroidProjectParams, AndroidDependencyConfig, AndroidDependencyParams>;
|
|
35
|
+
declare type IOSPlatformConfig = PlatformConfig<IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams>;
|
|
36
|
+
export declare type ProjectConfig = {
|
|
37
|
+
android?: Exclude<ReturnType<AndroidPlatformConfig['projectConfig']>, void>;
|
|
38
|
+
ios?: Exclude<ReturnType<IOSPlatformConfig['projectConfig']>, void>;
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
export interface DependencyConfig {
|
|
43
42
|
name: string;
|
|
44
43
|
root: string;
|
|
45
44
|
platforms: {
|
|
46
|
-
android?:
|
|
47
|
-
ios?:
|
|
45
|
+
android?: Exclude<ReturnType<AndroidPlatformConfig['dependencyConfig']>, void>;
|
|
46
|
+
ios?: Exclude<ReturnType<IOSPlatformConfig['dependencyConfig']>, void>;
|
|
48
47
|
[key: string]: any;
|
|
49
48
|
};
|
|
50
|
-
assets: string[];
|
|
51
|
-
hooks: {
|
|
52
|
-
prelink?: string;
|
|
53
|
-
postlink?: string;
|
|
54
|
-
preunlink?: string;
|
|
55
|
-
postunlink?: string;
|
|
56
|
-
};
|
|
57
|
-
params: Prompt[];
|
|
58
49
|
}
|
|
59
|
-
export
|
|
60
|
-
android?: AndroidProjectConfig;
|
|
61
|
-
ios?: IOSProjectConfig;
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
};
|
|
64
|
-
export declare type NotFound = 'Not Found';
|
|
65
|
-
declare type AvailableInformation = {
|
|
66
|
-
version: string;
|
|
67
|
-
path: string;
|
|
68
|
-
};
|
|
69
|
-
declare type Information = AvailableInformation | NotFound;
|
|
70
|
-
export declare type EnvironmentInfo = {
|
|
71
|
-
System: {
|
|
72
|
-
OS: string;
|
|
73
|
-
CPU: string;
|
|
74
|
-
Memory: string;
|
|
75
|
-
Shell: AvailableInformation;
|
|
76
|
-
};
|
|
77
|
-
Binaries: {
|
|
78
|
-
Node: AvailableInformation;
|
|
79
|
-
Yarn: AvailableInformation;
|
|
80
|
-
npm: AvailableInformation;
|
|
81
|
-
Watchman: AvailableInformation;
|
|
82
|
-
};
|
|
83
|
-
SDKs: {
|
|
84
|
-
'iOS SDK': {
|
|
85
|
-
Platforms: string[];
|
|
86
|
-
};
|
|
87
|
-
'Android SDK': {
|
|
88
|
-
'API Levels': string[] | NotFound;
|
|
89
|
-
'Build Tools': string[] | NotFound;
|
|
90
|
-
'System Images': string[] | NotFound;
|
|
91
|
-
'Android NDK': string | NotFound;
|
|
92
|
-
} | NotFound;
|
|
93
|
-
};
|
|
94
|
-
IDEs: {
|
|
95
|
-
'Android Studio': AvailableInformation | NotFound;
|
|
96
|
-
Emacs: AvailableInformation;
|
|
97
|
-
Nano: AvailableInformation;
|
|
98
|
-
VSCode: AvailableInformation;
|
|
99
|
-
Vim: AvailableInformation;
|
|
100
|
-
Xcode: AvailableInformation;
|
|
101
|
-
};
|
|
102
|
-
Languages: {
|
|
103
|
-
Java: Information;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
export declare type HealthCheckCategory = {
|
|
107
|
-
label: string;
|
|
108
|
-
healthchecks: HealthCheckInterface[];
|
|
109
|
-
};
|
|
110
|
-
export declare type Healthchecks = {
|
|
111
|
-
common: HealthCheckCategory;
|
|
112
|
-
android: HealthCheckCategory;
|
|
113
|
-
ios?: HealthCheckCategory;
|
|
114
|
-
};
|
|
115
|
-
export declare type RunAutomaticFix = (args: {
|
|
116
|
-
loader: Ora;
|
|
117
|
-
logManualInstallation: ({ healthcheck, url, command, message, }: {
|
|
118
|
-
healthcheck?: string;
|
|
119
|
-
url?: string;
|
|
120
|
-
command?: string;
|
|
121
|
-
message?: string;
|
|
122
|
-
}) => void;
|
|
123
|
-
environmentInfo: EnvironmentInfo;
|
|
124
|
-
}) => Promise<void> | void;
|
|
125
|
-
export declare type HealthCheckInterface = {
|
|
126
|
-
label: string;
|
|
127
|
-
visible?: boolean | void;
|
|
128
|
-
isRequired?: boolean;
|
|
129
|
-
description?: string;
|
|
130
|
-
getDiagnostics: (environmentInfo: EnvironmentInfo) => Promise<{
|
|
131
|
-
version?: string;
|
|
132
|
-
versions?: [string];
|
|
133
|
-
versionRange?: string;
|
|
134
|
-
needsToBeFixed: boolean | string;
|
|
135
|
-
}>;
|
|
136
|
-
win32AutomaticFix?: RunAutomaticFix;
|
|
137
|
-
darwinAutomaticFix?: RunAutomaticFix;
|
|
138
|
-
linuxAutomaticFix?: RunAutomaticFix;
|
|
139
|
-
runAutomaticFix: RunAutomaticFix;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* @property root - Root where the configuration has been resolved from
|
|
143
|
-
* @property reactNativePath - Path to React Native source
|
|
144
|
-
* @property project - Object that contains configuration for a project (null, when platform not available)
|
|
145
|
-
* @property assets - An array of assets as defined by the user
|
|
146
|
-
* @property dependencies - Map of the dependencies that are present in the project
|
|
147
|
-
* @property platforms - Map of available platforms (build-ins and dynamically loaded)
|
|
148
|
-
* @property commands - An array of commands that are present in 3rd party packages
|
|
149
|
-
* @property healthChecks - An array of health check categories to add to doctor command
|
|
150
|
-
*/
|
|
151
|
-
export interface Config extends IOSNativeModulesConfig {
|
|
50
|
+
export interface Config {
|
|
152
51
|
root: string;
|
|
153
52
|
reactNativePath: string;
|
|
154
53
|
project: ProjectConfig;
|
|
155
|
-
assets: string[];
|
|
156
54
|
dependencies: {
|
|
157
|
-
[key: string]:
|
|
55
|
+
[key: string]: DependencyConfig;
|
|
158
56
|
};
|
|
159
57
|
platforms: {
|
|
160
|
-
android:
|
|
161
|
-
ios:
|
|
58
|
+
android: AndroidPlatformConfig;
|
|
59
|
+
ios: IOSPlatformConfig;
|
|
162
60
|
[name: string]: PlatformConfig<any, any, any, any>;
|
|
163
61
|
};
|
|
164
62
|
commands: Command[];
|
|
165
|
-
healthChecks:
|
|
63
|
+
healthChecks: [];
|
|
166
64
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Shares some structure with Config, except that root is calculated and can't
|
|
169
|
-
* be defined
|
|
170
|
-
*/
|
|
171
65
|
export declare type UserConfig = Omit<Config, 'root'> & {
|
|
172
66
|
reactNativePath: string | void;
|
|
173
67
|
project: {
|
|
@@ -177,11 +71,11 @@ export declare type UserConfig = Omit<Config, 'root'> & {
|
|
|
177
71
|
};
|
|
178
72
|
};
|
|
179
73
|
export declare type UserDependencyConfig = {
|
|
180
|
-
dependency: Omit<
|
|
74
|
+
dependency: Omit<DependencyConfig, 'name' | 'root'>;
|
|
181
75
|
commands: Command[];
|
|
182
76
|
platforms: Config['platforms'];
|
|
183
|
-
healthChecks:
|
|
77
|
+
healthChecks: [];
|
|
184
78
|
};
|
|
185
|
-
export { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams,
|
|
79
|
+
export { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams, IOSProjectInfo, };
|
|
186
80
|
export { AndroidProjectConfig, AndroidProjectParams, AndroidDependencyConfig, AndroidDependencyParams, };
|
|
187
81
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,WAAW,CAAC;AAEnB,oBAAY,MAAM,GAAG,GAAG,CAAC;AAEzB,oBAAY,eAAe,CAAC,IAAI,GAAG,MAAM,IAAI,CAC3C,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,KACP,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,oBAAY,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD,oBAAY,aAAa,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,WAAW,IAAI;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;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AE,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;KACpD,CAAC;IACF,QAAQ,EAAE,OAAO,EAAE,CAAC;IAEpB,YAAY,EAAE,EAAE,CAAC;CAClB;AAED,oBAAY,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IAC9C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,OAAO,EAAE;QACP,OAAO,CAAC,EAAE,oBAAoB,CAAC;QAC/B,GAAG,CAAC,EAAE,gBAAgB,CAAC;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IAEjC,UAAU,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAEpD,QAAQ,EAAE,OAAO,EAAE,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAE/B,YAAY,EAAE,EAAE,CAAC;CAClB,CAAC;AAEF,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACf,CAAC;AAEF,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,GACxB,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -27,10 +27,10 @@ Object.defineProperty(exports, "IOSDependencyParams", {
|
|
|
27
27
|
return _ios.IOSDependencyParams;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "IOSProjectInfo", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function () {
|
|
33
|
-
return _ios.
|
|
33
|
+
return _ios.IOSProjectInfo;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "AndroidProjectConfig", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAOA","sourcesContent":["import {\n IOSProjectConfig,\n IOSProjectParams,\n IOSDependencyConfig,\n IOSDependencyParams,\n IOSProjectInfo,\n} from './ios';\nimport {\n AndroidProjectConfig,\n AndroidProjectParams,\n AndroidDependencyConfig,\n AndroidDependencyParams,\n} from './android';\n\nexport type Prompt = any;\n\nexport type CommandFunction<Args = Object> = (\n argv: Array<string>,\n ctx: Config,\n args: Args,\n) => Promise<void> | void;\n\nexport type OptionValue = string | boolean | number;\n\nexport type CommandOption<T = (ctx: Config) => OptionValue> = {\n name: string;\n description?: string;\n parse?: (val: string) => any;\n default?: OptionValue | T;\n};\n\nexport type DetachedCommandFunction<Args = Object> = (\n argv: string[],\n args: Args,\n) => Promise<void> | void;\n\nexport type Command<IsDetached extends boolean = false> = {\n name: string;\n description?: string;\n detached?: IsDetached;\n examples?: Array<{\n desc: string;\n cmd: string;\n }>;\n pkg?: {\n name: string;\n version: string;\n };\n func: IsDetached extends true\n ? DetachedCommandFunction<Object>\n : CommandFunction<Object>;\n options?: Array<\n CommandOption<\n IsDetached extends true ? () => OptionValue : (ctx: Config) => OptionValue\n >\n >;\n};\n\nexport type DetachedCommand = Command<true>;\n\ninterface PlatformConfig<\n ProjectConfig,\n ProjectParams,\n DependencyConfig,\n DependencyParams\n> {\n npmPackageName?: string;\n projectConfig: (\n projectRoot: string,\n projectParams: ProjectParams | void,\n ) => ProjectConfig | void;\n dependencyConfig: (\n dependency: string,\n params: DependencyParams,\n ) => DependencyConfig | void;\n}\n\ntype AndroidPlatformConfig = PlatformConfig<\n AndroidProjectConfig,\n AndroidProjectParams,\n AndroidDependencyConfig,\n AndroidDependencyParams\n>;\n\ntype IOSPlatformConfig = PlatformConfig<\n IOSProjectConfig,\n IOSProjectParams,\n IOSDependencyConfig,\n IOSDependencyParams\n>;\n\nexport type ProjectConfig = {\n android?: Exclude<ReturnType<AndroidPlatformConfig['projectConfig']>, void>;\n ios?: Exclude<ReturnType<IOSPlatformConfig['projectConfig']>, void>;\n [key: string]: any;\n};\n\nexport interface DependencyConfig {\n name: string;\n root: string;\n platforms: {\n android?: Exclude<\n ReturnType<AndroidPlatformConfig['dependencyConfig']>,\n void\n >;\n ios?: Exclude<ReturnType<IOSPlatformConfig['dependencyConfig']>, void>;\n [key: string]: any;\n };\n}\n\nexport interface Config {\n root: string;\n reactNativePath: string;\n project: ProjectConfig;\n dependencies: {\n [key: string]: DependencyConfig;\n };\n platforms: {\n android: AndroidPlatformConfig;\n ios: IOSPlatformConfig;\n [name: string]: PlatformConfig<any, any, any, any>;\n };\n commands: Command[];\n // @todo this should be removed: https://github.com/react-native-community/cli/issues/1261\n healthChecks: [];\n}\n\nexport type UserConfig = Omit<Config, 'root'> & {\n reactNativePath: string | void;\n // Additional project settings\n project: {\n android?: AndroidProjectParams;\n ios?: IOSProjectParams;\n [key: string]: any;\n };\n};\n\nexport type UserDependencyConfig = {\n // Additional dependency settings\n dependency: Omit<DependencyConfig, 'name' | 'root'>;\n // An array of commands that ship with the dependency\n commands: Command[];\n // An array of extra platforms to load\n platforms: Config['platforms'];\n // Additional health checks\n healthChecks: [];\n};\n\nexport {\n IOSProjectConfig,\n IOSProjectParams,\n IOSDependencyConfig,\n IOSDependencyParams,\n IOSProjectInfo,\n};\n\nexport {\n AndroidProjectConfig,\n AndroidProjectParams,\n AndroidDependencyConfig,\n AndroidDependencyParams,\n};\n"]}
|
package/build/ios.d.ts
CHANGED
|
@@ -1,42 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* See UserDependencyConfigT and UserConfigT for details
|
|
2
|
+
* Types in this document describe the data that is expected by `native_modules.rb`.
|
|
3
|
+
* When performing changes, make sure to sync it with the Ruby file.
|
|
6
4
|
*/
|
|
7
5
|
export interface IOSProjectParams {
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated A podspec should always be at the root of a package and
|
|
11
|
-
* have the name of the package. This property will be
|
|
12
|
-
* removed in a future major version.
|
|
13
|
-
*
|
|
14
|
-
* @todo Log a warning when this is used.
|
|
15
|
-
*/
|
|
16
|
-
podspecPath?: string;
|
|
17
|
-
sharedLibraries?: string[];
|
|
18
|
-
libraryFolder?: string;
|
|
19
|
-
plist: Array<any>;
|
|
20
|
-
scriptPhases?: Array<any>;
|
|
21
|
-
}
|
|
22
|
-
export interface IOSDependencyParams extends IOSProjectParams {
|
|
23
|
-
configurations?: string[];
|
|
6
|
+
sourceDir?: string;
|
|
24
7
|
}
|
|
8
|
+
export declare type IOSProjectInfo = {
|
|
9
|
+
name: string;
|
|
10
|
+
isWorkspace: boolean;
|
|
11
|
+
};
|
|
25
12
|
export interface IOSProjectConfig {
|
|
26
13
|
sourceDir: string;
|
|
27
|
-
|
|
28
|
-
pbxprojPath: string;
|
|
29
|
-
podfile: string;
|
|
30
|
-
podspecPath: string;
|
|
31
|
-
projectPath: string;
|
|
32
|
-
projectName: string;
|
|
33
|
-
libraryFolder: string;
|
|
34
|
-
sharedLibraries: Array<any>;
|
|
35
|
-
plist: Array<any>;
|
|
14
|
+
xcodeProject: IOSProjectInfo | null;
|
|
36
15
|
}
|
|
37
|
-
export interface IOSDependencyConfig
|
|
16
|
+
export interface IOSDependencyConfig {
|
|
17
|
+
podspecPath: string;
|
|
18
|
+
scriptPhases: Array<IOSScriptPhase>;
|
|
38
19
|
configurations: string[];
|
|
39
20
|
}
|
|
21
|
+
export declare type IOSDependencyParams = Omit<Partial<IOSDependencyConfig>, 'podspecPath'>;
|
|
40
22
|
/**
|
|
41
23
|
* @see https://www.rubydoc.info/gems/cocoapods-core/Pod/Podfile/DSL#script_phase-instance_method
|
|
42
24
|
*
|
|
@@ -59,37 +41,4 @@ export declare type IOSScriptPhase = ({
|
|
|
59
41
|
dependency_file?: string;
|
|
60
42
|
execution_position?: 'before_compile' | 'after_compile' | 'any';
|
|
61
43
|
};
|
|
62
|
-
/**
|
|
63
|
-
* This describes the data that is expected by `native_modules.rb`. It is only
|
|
64
|
-
* meant to ensure the `Config` interface follows exactly what is needed, so
|
|
65
|
-
* only make changes to this interface (or `IOSScriptPhase`) if the data
|
|
66
|
-
* requirements of `native_modules.rb` change.
|
|
67
|
-
*/
|
|
68
|
-
export interface IOSNativeModulesConfig {
|
|
69
|
-
reactNativePath: string;
|
|
70
|
-
project: {
|
|
71
|
-
ios?: {
|
|
72
|
-
sourceDir: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
dependencies: {
|
|
76
|
-
[name: string]: {
|
|
77
|
-
root: string;
|
|
78
|
-
platforms: {
|
|
79
|
-
ios?: null | {
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated A podspec should always be at the root of a package and
|
|
82
|
-
* have the name of the package. This property will be
|
|
83
|
-
* removed in a future major version.
|
|
84
|
-
*
|
|
85
|
-
* @todo Log a warning when this is used.
|
|
86
|
-
*/
|
|
87
|
-
podspecPath: string;
|
|
88
|
-
scriptPhases?: Array<IOSScriptPhase>;
|
|
89
|
-
};
|
|
90
|
-
android?: null | {};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
44
|
//# sourceMappingURL=ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,cAAc,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACpC,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,oBAAY,mBAAmB,GAAG,IAAI,CACpC,OAAO,CAAC,mBAAmB,CAAC,EAC5B,aAAa,CACd,CAAC;AAEF;;;;;;GAMG;AACH,oBAAY,cAAc,GAAG,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,GAAG;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC,GAAG;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,gBAAgB,GAAG,eAAe,GAAG,KAAK,CAAC;CACjE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-community/cli-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha.0",
|
|
4
4
|
"main": "build",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"ora": "^3.4.0"
|
|
10
|
-
},
|
|
11
8
|
"files": [
|
|
12
9
|
"build",
|
|
13
10
|
"!*.map"
|
|
14
11
|
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"joi": "^17.2.1"
|
|
14
|
+
},
|
|
15
15
|
"types": "build/index.d.ts",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"homepage": "https://github.com/react-native-community/cli/tree/master/packages/cli-types",
|
|
@@ -19,6 +19,5 @@
|
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/react-native-community/cli.git",
|
|
21
21
|
"directory": "packages/cli-types"
|
|
22
|
-
}
|
|
23
|
-
"gitHead": "47aed081b4cbea02d4cc7f12d4fec732ee85b2a4"
|
|
22
|
+
}
|
|
24
23
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018 react-native-community
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|