@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,87 +1,87 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
import { Ora } from 'ora';
|
|
7
|
-
import { Command, Config, DependencyConfig, ProjectConfig } from '@react-native-community/cli-types';
|
|
8
|
-
import { AutoLinkOptions } from './autolinkWindowsOptions';
|
|
9
|
-
import { WindowsProjectConfig } from '../config/projectConfig';
|
|
10
|
-
export declare class AutoLinkWindows {
|
|
11
|
-
readonly projectConfig: ProjectConfig;
|
|
12
|
-
readonly dependenciesConfig: {
|
|
13
|
-
[key: string]: DependencyConfig;
|
|
14
|
-
};
|
|
15
|
-
readonly options: AutoLinkOptions;
|
|
16
|
-
private changesNecessary;
|
|
17
|
-
protected windowsAppConfig: WindowsProjectConfig;
|
|
18
|
-
areChangesNeeded(): boolean;
|
|
19
|
-
private getWindowsConfig;
|
|
20
|
-
private getSolutionFile;
|
|
21
|
-
constructor(projectConfig: ProjectConfig, dependenciesConfig: {
|
|
22
|
-
[key: string]: DependencyConfig;
|
|
23
|
-
}, options: AutoLinkOptions);
|
|
24
|
-
run(spinner: Ora): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Handles the --proj command-line option by consuming its value into the windowsAppConfig
|
|
27
|
-
*/
|
|
28
|
-
fixUpForProjOption(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Handles the --sln command-line option by consuming its value into the windowsAppConfig
|
|
31
|
-
*/
|
|
32
|
-
fixUpForSlnOption(): void;
|
|
33
|
-
/** Validates the all of the required app (solution) properties are present and valid */
|
|
34
|
-
validateRequiredAppProperties(): void;
|
|
35
|
-
/** @return the full path to the project file (.vcxproj or .csproj) */
|
|
36
|
-
private getProjectFile;
|
|
37
|
-
/** Validates that all of the required app _project_ properties are present and valid */
|
|
38
|
-
validateRequiredProjectProperties(): void;
|
|
39
|
-
private generateCppAutolinking;
|
|
40
|
-
getCppReplacements(): {
|
|
41
|
-
cppPackageProviders: string;
|
|
42
|
-
cppIncludes: string;
|
|
43
|
-
};
|
|
44
|
-
private generateCSAutolinking;
|
|
45
|
-
getCsReplacements(): {
|
|
46
|
-
csUsingNamespaces: string;
|
|
47
|
-
csReactPackageProviders: string;
|
|
48
|
-
};
|
|
49
|
-
/** Cache of dependencies */
|
|
50
|
-
private windowsDependencies;
|
|
51
|
-
private getWindowsDependencies;
|
|
52
|
-
/**
|
|
53
|
-
* Updates the target file with the expected contents if it's different.
|
|
54
|
-
* @param filePath Path to the target file to update.
|
|
55
|
-
* @param expectedContents The expected contents of the file.
|
|
56
|
-
* @return Whether any changes were necessary.
|
|
57
|
-
*/
|
|
58
|
-
protected updateFile(filePath: string, expectedContents: string): Promise<boolean>;
|
|
59
|
-
private generateAutolinkTargets;
|
|
60
|
-
private generateAutolinkProps;
|
|
61
|
-
private getCSModules;
|
|
62
|
-
private updateSolution;
|
|
63
|
-
protected getExperimentalFeaturesPropsXml(): {
|
|
64
|
-
path: string;
|
|
65
|
-
content: Document;
|
|
66
|
-
} | undefined;
|
|
67
|
-
ensureXAMLDialect(): Promise<boolean>;
|
|
68
|
-
protected getPackagesConfigXml(): {
|
|
69
|
-
path: string;
|
|
70
|
-
content: Document;
|
|
71
|
-
} | undefined;
|
|
72
|
-
private updatePackagesConfigXAMLDialect;
|
|
73
|
-
private updatePackagesConfig;
|
|
74
|
-
/** @return The CLI command to invoke autolink-windows independently */
|
|
75
|
-
getAutolinkWindowsCommand(): string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Performs auto-linking for RNW native modules and apps.
|
|
79
|
-
* @param args Unprocessed args passed from react-native CLI.
|
|
80
|
-
* @param config Config passed from react-native CLI.
|
|
81
|
-
* @param options Options passed from react-native CLI.
|
|
82
|
-
*/
|
|
83
|
-
export declare function autolinkWindowsInternal(args: string[], config: Config, options: AutoLinkOptions): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Performs auto-linking for RNW native modules and apps.
|
|
86
|
-
*/
|
|
87
|
-
export declare const autolinkCommand: Command;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import { Ora } from 'ora';
|
|
7
|
+
import { Command, Config, DependencyConfig, ProjectConfig } from '@react-native-community/cli-types';
|
|
8
|
+
import { AutoLinkOptions } from './autolinkWindowsOptions';
|
|
9
|
+
import { WindowsProjectConfig } from '../config/projectConfig';
|
|
10
|
+
export declare class AutoLinkWindows {
|
|
11
|
+
readonly projectConfig: ProjectConfig;
|
|
12
|
+
readonly dependenciesConfig: {
|
|
13
|
+
[key: string]: DependencyConfig;
|
|
14
|
+
};
|
|
15
|
+
readonly options: AutoLinkOptions;
|
|
16
|
+
private changesNecessary;
|
|
17
|
+
protected windowsAppConfig: WindowsProjectConfig;
|
|
18
|
+
areChangesNeeded(): boolean;
|
|
19
|
+
private getWindowsConfig;
|
|
20
|
+
private getSolutionFile;
|
|
21
|
+
constructor(projectConfig: ProjectConfig, dependenciesConfig: {
|
|
22
|
+
[key: string]: DependencyConfig;
|
|
23
|
+
}, options: AutoLinkOptions);
|
|
24
|
+
run(spinner: Ora): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Handles the --proj command-line option by consuming its value into the windowsAppConfig
|
|
27
|
+
*/
|
|
28
|
+
fixUpForProjOption(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Handles the --sln command-line option by consuming its value into the windowsAppConfig
|
|
31
|
+
*/
|
|
32
|
+
fixUpForSlnOption(): void;
|
|
33
|
+
/** Validates the all of the required app (solution) properties are present and valid */
|
|
34
|
+
validateRequiredAppProperties(): void;
|
|
35
|
+
/** @return the full path to the project file (.vcxproj or .csproj) */
|
|
36
|
+
private getProjectFile;
|
|
37
|
+
/** Validates that all of the required app _project_ properties are present and valid */
|
|
38
|
+
validateRequiredProjectProperties(): void;
|
|
39
|
+
private generateCppAutolinking;
|
|
40
|
+
getCppReplacements(): {
|
|
41
|
+
cppPackageProviders: string;
|
|
42
|
+
cppIncludes: string;
|
|
43
|
+
};
|
|
44
|
+
private generateCSAutolinking;
|
|
45
|
+
getCsReplacements(): {
|
|
46
|
+
csUsingNamespaces: string;
|
|
47
|
+
csReactPackageProviders: string;
|
|
48
|
+
};
|
|
49
|
+
/** Cache of dependencies */
|
|
50
|
+
private windowsDependencies;
|
|
51
|
+
private getWindowsDependencies;
|
|
52
|
+
/**
|
|
53
|
+
* Updates the target file with the expected contents if it's different.
|
|
54
|
+
* @param filePath Path to the target file to update.
|
|
55
|
+
* @param expectedContents The expected contents of the file.
|
|
56
|
+
* @return Whether any changes were necessary.
|
|
57
|
+
*/
|
|
58
|
+
protected updateFile(filePath: string, expectedContents: string): Promise<boolean>;
|
|
59
|
+
private generateAutolinkTargets;
|
|
60
|
+
private generateAutolinkProps;
|
|
61
|
+
private getCSModules;
|
|
62
|
+
private updateSolution;
|
|
63
|
+
protected getExperimentalFeaturesPropsXml(): {
|
|
64
|
+
path: string;
|
|
65
|
+
content: Document;
|
|
66
|
+
} | undefined;
|
|
67
|
+
ensureXAMLDialect(): Promise<boolean>;
|
|
68
|
+
protected getPackagesConfigXml(): {
|
|
69
|
+
path: string;
|
|
70
|
+
content: Document;
|
|
71
|
+
} | undefined;
|
|
72
|
+
private updatePackagesConfigXAMLDialect;
|
|
73
|
+
private updatePackagesConfig;
|
|
74
|
+
/** @return The CLI command to invoke autolink-windows independently */
|
|
75
|
+
getAutolinkWindowsCommand(): string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Performs auto-linking for RNW native modules and apps.
|
|
79
|
+
* @param args Unprocessed args passed from react-native CLI.
|
|
80
|
+
* @param config Config passed from react-native CLI.
|
|
81
|
+
* @param options Options passed from react-native CLI.
|
|
82
|
+
*/
|
|
83
|
+
export declare function autolinkWindowsInternal(args: string[], config: Config, options: AutoLinkOptions): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Performs auto-linking for RNW native modules and apps.
|
|
86
|
+
*/
|
|
87
|
+
export declare const autolinkCommand: Command;
|