@react-native-windows/cli 0.73.2 → 0.74.0-preview.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/lib-commonjs/commands/autolinkWindows/autolinkWindows.d.ts +87 -87
- package/lib-commonjs/commands/autolinkWindows/autolinkWindows.js +654 -654
- package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.d.ts +14 -14
- package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.js +32 -32
- package/lib-commonjs/commands/codegenWindows/codegenWindows.d.ts +27 -27
- package/lib-commonjs/commands/codegenWindows/codegenWindows.js +205 -205
- package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.d.ts +12 -12
- package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.js +22 -22
- package/lib-commonjs/commands/config/configUtils.d.ts +123 -123
- package/lib-commonjs/commands/config/configUtils.js +380 -380
- package/lib-commonjs/commands/config/dependencyConfig.d.ts +37 -37
- package/lib-commonjs/commands/config/dependencyConfig.js +227 -227
- package/lib-commonjs/commands/config/projectConfig.d.ts +27 -27
- package/lib-commonjs/commands/config/projectConfig.js +180 -180
- package/lib-commonjs/commands/healthCheck/healthCheckList.d.ts +6 -6
- package/lib-commonjs/commands/healthCheck/healthCheckList.js +20 -20
- package/lib-commonjs/commands/healthCheck/healthCheckList.js.map +1 -1
- package/lib-commonjs/commands/healthCheck/healthChecks.d.ts +7 -7
- package/lib-commonjs/commands/healthCheck/healthChecks.js +123 -123
- package/lib-commonjs/commands/initWindows/initWindows.d.ts +46 -46
- package/lib-commonjs/commands/initWindows/initWindows.js +243 -243
- package/lib-commonjs/commands/initWindows/initWindowsOptions.d.ts +15 -15
- package/lib-commonjs/commands/initWindows/initWindowsOptions.js +37 -37
- package/lib-commonjs/commands/runWindows/runWindows.d.ts +10 -10
- package/lib-commonjs/commands/runWindows/runWindows.js +321 -321
- package/lib-commonjs/commands/runWindows/runWindowsOptions.d.ts +56 -56
- package/lib-commonjs/commands/runWindows/runWindowsOptions.js +132 -132
- package/lib-commonjs/e2etest/autolink.test.d.ts +6 -6
- package/lib-commonjs/e2etest/autolink.test.js +366 -366
- package/lib-commonjs/e2etest/dependencyConfig.test.d.ts +6 -6
- package/lib-commonjs/e2etest/dependencyConfig.test.js +129 -129
- package/lib-commonjs/e2etest/healthChecks.test.d.ts +6 -6
- package/lib-commonjs/e2etest/healthChecks.test.js +30 -30
- package/lib-commonjs/e2etest/initWindows.test.d.ts +6 -6
- package/lib-commonjs/e2etest/initWindows.test.js +42 -42
- package/lib-commonjs/e2etest/projectConfig.test.d.ts +6 -6
- package/lib-commonjs/e2etest/projectConfig.test.js +110 -110
- package/lib-commonjs/e2etest/projectConfig.utils.d.ts +8 -8
- package/lib-commonjs/e2etest/projectConfig.utils.js +76 -76
- package/lib-commonjs/e2etest/runWindows.test.d.ts +6 -6
- package/lib-commonjs/e2etest/runWindows.test.js +60 -60
- package/lib-commonjs/e2etest/typesUpToDate.test.d.ts +6 -0
- package/lib-commonjs/e2etest/typesUpToDate.test.js +21 -0
- package/lib-commonjs/e2etest/typesUpToDate.test.js.map +1 -0
- package/lib-commonjs/generator-common/index.d.ts +39 -39
- package/lib-commonjs/generator-common/index.js +242 -242
- package/lib-commonjs/generator-windows/index.d.ts +10 -10
- package/lib-commonjs/generator-windows/index.js +316 -316
- package/lib-commonjs/index.d.ts +50 -50
- package/lib-commonjs/index.js +77 -77
- package/lib-commonjs/utils/build.d.ts +12 -12
- package/lib-commonjs/utils/build.js +84 -84
- package/lib-commonjs/utils/checkRequirements.d.ts +6 -6
- package/lib-commonjs/utils/checkRequirements.js +69 -69
- package/lib-commonjs/utils/commandWithProgress.d.ts +21 -21
- package/lib-commonjs/utils/commandWithProgress.js +149 -149
- package/lib-commonjs/utils/deploy.d.ts +12 -12
- package/lib-commonjs/utils/deploy.js +353 -353
- package/lib-commonjs/utils/info.d.ts +6 -6
- package/lib-commonjs/utils/info.js +28 -28
- package/lib-commonjs/utils/msbuildtools.d.ts +28 -28
- package/lib-commonjs/utils/msbuildtools.js +273 -273
- package/lib-commonjs/utils/msbuildtools.js.map +1 -1
- package/lib-commonjs/utils/pathHelpers.d.ts +9 -9
- package/lib-commonjs/utils/pathHelpers.js +36 -36
- package/lib-commonjs/utils/telemetryHelpers.d.ts +29 -29
- package/lib-commonjs/utils/telemetryHelpers.js +120 -120
- package/lib-commonjs/utils/version.d.ts +19 -19
- package/lib-commonjs/utils/version.js +109 -109
- package/lib-commonjs/utils/vsInstalls.d.ts +34 -34
- package/lib-commonjs/utils/vsInstalls.js +99 -99
- package/lib-commonjs/utils/vstools.d.ts +16 -16
- package/lib-commonjs/utils/vstools.js +189 -189
- package/lib-commonjs/utils/winappdeploytool.d.ts +24 -24
- package/lib-commonjs/utils/winappdeploytool.js +108 -108
- package/package.json +16 -16
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Search for files matching the pattern under the target folder.
|
|
8
|
-
* @param folder The absolute path to target folder.
|
|
9
|
-
* @param filenamePattern The pattern to search for.
|
|
10
|
-
* @return Return the array of relative file paths.
|
|
11
|
-
*/
|
|
12
|
-
export declare function findFiles(folder: string, filenamePattern: string): string[];
|
|
13
|
-
/**
|
|
14
|
-
* Search for the windows sub-folder under the target folder.
|
|
15
|
-
* @param folder The absolute path to the target folder.
|
|
16
|
-
* @return The absolute path to the windows folder, if it exists.
|
|
17
|
-
*/
|
|
18
|
-
export declare function findWindowsFolder(folder: string): string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Checks if the target file path is a RNW solution file by checking if it contains the string "ReactNative".
|
|
21
|
-
* @param filePath The absolute file path to check.
|
|
22
|
-
* @return Whether the path is to a RNW solution file.
|
|
23
|
-
*/
|
|
24
|
-
export declare function isRnwSolution(filePath: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Search for the RNW solution files under the target folder.
|
|
27
|
-
* @param winFolder The absolute path to target folder.
|
|
28
|
-
* @return Return the array of relative file paths.
|
|
29
|
-
*/
|
|
30
|
-
export declare function findSolutionFiles(winFolder: string): string[];
|
|
31
|
-
/**
|
|
32
|
-
* Checks if the target file path is a RNW lib project file.
|
|
33
|
-
* @param filePath The absolute file path to check.
|
|
34
|
-
* @return Whether the path is to a RNW lib project file.
|
|
35
|
-
*/
|
|
36
|
-
export declare function isRnwDependencyProject(filePath: string): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Search for the RNW lib project files under the target folder.
|
|
39
|
-
* @param winFolder The absolute path to target folder.
|
|
40
|
-
* @return Return the array of relative file paths.
|
|
41
|
-
*/
|
|
42
|
-
export declare function findDependencyProjectFiles(winFolder: string): string[];
|
|
43
|
-
/**
|
|
44
|
-
* Search for the RNW app project files under the target folder.
|
|
45
|
-
* @param winFolder The absolute path to target folder.
|
|
46
|
-
* @return Return the array of relative file paths.
|
|
47
|
-
*/
|
|
48
|
-
export declare function findAppProjectFiles(winFolder: string): string[];
|
|
49
|
-
/**
|
|
50
|
-
* Returns the programming language of the project file.
|
|
51
|
-
* @param projectPath The project file path to check.
|
|
52
|
-
* @return The language string: cpp, cs, or null if unknown.
|
|
53
|
-
*/
|
|
54
|
-
export declare function getProjectLanguage(projectPath: string): 'cpp' | 'cs' | null;
|
|
55
|
-
/**
|
|
56
|
-
* Reads in the contents of the target project file.
|
|
57
|
-
* @param projectPath The target project file path.
|
|
58
|
-
* @return The project file contents.
|
|
59
|
-
*/
|
|
60
|
-
export declare function readProjectFile(projectPath: string): Document;
|
|
61
|
-
/**
|
|
62
|
-
* Search for the given property in the project contents and return its value.
|
|
63
|
-
* @param projectContents The XML project contents.
|
|
64
|
-
* @param propertyName The property to look for.
|
|
65
|
-
* @return The value of the tag if it exists.
|
|
66
|
-
*/
|
|
67
|
-
export declare function tryFindPropertyValue(projectContents: Node, propertyName: string): string | null;
|
|
68
|
-
/**
|
|
69
|
-
* Search for the given property in the project contents and return its value.
|
|
70
|
-
* @param projectContents The XML project contents.
|
|
71
|
-
* @param propertyName The property to look for.
|
|
72
|
-
* @return The value of the tag if it exists.
|
|
73
|
-
*/
|
|
74
|
-
export declare function tryFindPropertyValueAsBoolean(projectContents: Node, propertyName: string): boolean | null;
|
|
75
|
-
export declare function findPropertyValue(projectContents: Node, propertyName: string, filePath: string): string;
|
|
76
|
-
/**
|
|
77
|
-
* Search for the given import project in the project contents and return if it exists.
|
|
78
|
-
* @param projectContents The XML project contents.
|
|
79
|
-
* @param projectName The project to look for.
|
|
80
|
-
* @return If the target exists.
|
|
81
|
-
*/
|
|
82
|
-
export declare function importProjectExists(projectContents: Node, projectName: string): boolean;
|
|
83
|
-
export type ConfigurationType = 'application' | 'dynamiclibrary' | 'generic' | 'staticlibrary' | 'unknown';
|
|
84
|
-
/**
|
|
85
|
-
* Gets the configuration type of the project from the project contents.
|
|
86
|
-
* @param projectContents The XML project contents.
|
|
87
|
-
* @return The project configuration type.
|
|
88
|
-
*/
|
|
89
|
-
export declare function getConfigurationType(projectContents: Node): ConfigurationType;
|
|
90
|
-
export type OutputType = 'appcontainerexe' | 'exe' | 'library' | 'module' | 'unknown' | 'winexe' | 'winmdobj';
|
|
91
|
-
/**
|
|
92
|
-
* Gets the output type of the project from the project contents.
|
|
93
|
-
* @param projectContents The XML project contents.
|
|
94
|
-
* @return The project output type.
|
|
95
|
-
*/
|
|
96
|
-
export declare function getOutputType(projectContents: Node): OutputType;
|
|
97
|
-
/**
|
|
98
|
-
* Gets the type of the project from the project contents.
|
|
99
|
-
* @param projectPath The project file path to check.
|
|
100
|
-
* @param projectContents The XML project contents.
|
|
101
|
-
* @return The project type.
|
|
102
|
-
*/
|
|
103
|
-
export declare function getProjectType(projectPath: string, projectContents: Node): ConfigurationType | OutputType;
|
|
104
|
-
/**
|
|
105
|
-
* Gets the name of the project from the project contents.
|
|
106
|
-
* @param projectPath The project file path to check.
|
|
107
|
-
* @param projectContents The XML project contents.
|
|
108
|
-
* @return The project name.
|
|
109
|
-
*/
|
|
110
|
-
export declare function getProjectName(projectPath: string, projectContents: Node): string;
|
|
111
|
-
/**
|
|
112
|
-
* Gets the namespace of the project from the project contents.
|
|
113
|
-
* @param projectContents The XML project contents.
|
|
114
|
-
* @return The project namespace.
|
|
115
|
-
*/
|
|
116
|
-
export declare function getProjectNamespace(projectContents: Node): string | null;
|
|
117
|
-
/**
|
|
118
|
-
* Gets the guid of the project from the project contents.
|
|
119
|
-
* @param projectContents The XML project contents.
|
|
120
|
-
* @return The project guid.
|
|
121
|
-
*/
|
|
122
|
-
export declare function getProjectGuid(projectContents: Node): string | null;
|
|
123
|
-
export declare function getExperimentalFeatures(solutionDir: string): Record<string, string> | undefined;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Search for files matching the pattern under the target folder.
|
|
8
|
+
* @param folder The absolute path to target folder.
|
|
9
|
+
* @param filenamePattern The pattern to search for.
|
|
10
|
+
* @return Return the array of relative file paths.
|
|
11
|
+
*/
|
|
12
|
+
export declare function findFiles(folder: string, filenamePattern: string): string[];
|
|
13
|
+
/**
|
|
14
|
+
* Search for the windows sub-folder under the target folder.
|
|
15
|
+
* @param folder The absolute path to the target folder.
|
|
16
|
+
* @return The absolute path to the windows folder, if it exists.
|
|
17
|
+
*/
|
|
18
|
+
export declare function findWindowsFolder(folder: string): string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Checks if the target file path is a RNW solution file by checking if it contains the string "ReactNative".
|
|
21
|
+
* @param filePath The absolute file path to check.
|
|
22
|
+
* @return Whether the path is to a RNW solution file.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isRnwSolution(filePath: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Search for the RNW solution files under the target folder.
|
|
27
|
+
* @param winFolder The absolute path to target folder.
|
|
28
|
+
* @return Return the array of relative file paths.
|
|
29
|
+
*/
|
|
30
|
+
export declare function findSolutionFiles(winFolder: string): string[];
|
|
31
|
+
/**
|
|
32
|
+
* Checks if the target file path is a RNW lib project file.
|
|
33
|
+
* @param filePath The absolute file path to check.
|
|
34
|
+
* @return Whether the path is to a RNW lib project file.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isRnwDependencyProject(filePath: string): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Search for the RNW lib project files under the target folder.
|
|
39
|
+
* @param winFolder The absolute path to target folder.
|
|
40
|
+
* @return Return the array of relative file paths.
|
|
41
|
+
*/
|
|
42
|
+
export declare function findDependencyProjectFiles(winFolder: string): string[];
|
|
43
|
+
/**
|
|
44
|
+
* Search for the RNW app project files under the target folder.
|
|
45
|
+
* @param winFolder The absolute path to target folder.
|
|
46
|
+
* @return Return the array of relative file paths.
|
|
47
|
+
*/
|
|
48
|
+
export declare function findAppProjectFiles(winFolder: string): string[];
|
|
49
|
+
/**
|
|
50
|
+
* Returns the programming language of the project file.
|
|
51
|
+
* @param projectPath The project file path to check.
|
|
52
|
+
* @return The language string: cpp, cs, or null if unknown.
|
|
53
|
+
*/
|
|
54
|
+
export declare function getProjectLanguage(projectPath: string): 'cpp' | 'cs' | null;
|
|
55
|
+
/**
|
|
56
|
+
* Reads in the contents of the target project file.
|
|
57
|
+
* @param projectPath The target project file path.
|
|
58
|
+
* @return The project file contents.
|
|
59
|
+
*/
|
|
60
|
+
export declare function readProjectFile(projectPath: string): Document;
|
|
61
|
+
/**
|
|
62
|
+
* Search for the given property in the project contents and return its value.
|
|
63
|
+
* @param projectContents The XML project contents.
|
|
64
|
+
* @param propertyName The property to look for.
|
|
65
|
+
* @return The value of the tag if it exists.
|
|
66
|
+
*/
|
|
67
|
+
export declare function tryFindPropertyValue(projectContents: Node, propertyName: string): string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Search for the given property in the project contents and return its value.
|
|
70
|
+
* @param projectContents The XML project contents.
|
|
71
|
+
* @param propertyName The property to look for.
|
|
72
|
+
* @return The value of the tag if it exists.
|
|
73
|
+
*/
|
|
74
|
+
export declare function tryFindPropertyValueAsBoolean(projectContents: Node, propertyName: string): boolean | null;
|
|
75
|
+
export declare function findPropertyValue(projectContents: Node, propertyName: string, filePath: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* Search for the given import project in the project contents and return if it exists.
|
|
78
|
+
* @param projectContents The XML project contents.
|
|
79
|
+
* @param projectName The project to look for.
|
|
80
|
+
* @return If the target exists.
|
|
81
|
+
*/
|
|
82
|
+
export declare function importProjectExists(projectContents: Node, projectName: string): boolean;
|
|
83
|
+
export type ConfigurationType = 'application' | 'dynamiclibrary' | 'generic' | 'staticlibrary' | 'unknown';
|
|
84
|
+
/**
|
|
85
|
+
* Gets the configuration type of the project from the project contents.
|
|
86
|
+
* @param projectContents The XML project contents.
|
|
87
|
+
* @return The project configuration type.
|
|
88
|
+
*/
|
|
89
|
+
export declare function getConfigurationType(projectContents: Node): ConfigurationType;
|
|
90
|
+
export type OutputType = 'appcontainerexe' | 'exe' | 'library' | 'module' | 'unknown' | 'winexe' | 'winmdobj';
|
|
91
|
+
/**
|
|
92
|
+
* Gets the output type of the project from the project contents.
|
|
93
|
+
* @param projectContents The XML project contents.
|
|
94
|
+
* @return The project output type.
|
|
95
|
+
*/
|
|
96
|
+
export declare function getOutputType(projectContents: Node): OutputType;
|
|
97
|
+
/**
|
|
98
|
+
* Gets the type of the project from the project contents.
|
|
99
|
+
* @param projectPath The project file path to check.
|
|
100
|
+
* @param projectContents The XML project contents.
|
|
101
|
+
* @return The project type.
|
|
102
|
+
*/
|
|
103
|
+
export declare function getProjectType(projectPath: string, projectContents: Node): ConfigurationType | OutputType;
|
|
104
|
+
/**
|
|
105
|
+
* Gets the name of the project from the project contents.
|
|
106
|
+
* @param projectPath The project file path to check.
|
|
107
|
+
* @param projectContents The XML project contents.
|
|
108
|
+
* @return The project name.
|
|
109
|
+
*/
|
|
110
|
+
export declare function getProjectName(projectPath: string, projectContents: Node): string;
|
|
111
|
+
/**
|
|
112
|
+
* Gets the namespace of the project from the project contents.
|
|
113
|
+
* @param projectContents The XML project contents.
|
|
114
|
+
* @return The project namespace.
|
|
115
|
+
*/
|
|
116
|
+
export declare function getProjectNamespace(projectContents: Node): string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Gets the guid of the project from the project contents.
|
|
119
|
+
* @param projectContents The XML project contents.
|
|
120
|
+
* @return The project guid.
|
|
121
|
+
*/
|
|
122
|
+
export declare function getProjectGuid(projectContents: Node): string | null;
|
|
123
|
+
export declare function getExperimentalFeatures(solutionDir: string): Record<string, string> | undefined;
|