@react-native-windows/cli 0.73.2 → 0.74.0-preview.2

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.
Files changed (76) hide show
  1. package/lib-commonjs/commands/autolinkWindows/autolinkWindows.d.ts +87 -87
  2. package/lib-commonjs/commands/autolinkWindows/autolinkWindows.js +654 -654
  3. package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.d.ts +14 -14
  4. package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.js +32 -32
  5. package/lib-commonjs/commands/codegenWindows/codegenWindows.d.ts +27 -27
  6. package/lib-commonjs/commands/codegenWindows/codegenWindows.js +205 -205
  7. package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.d.ts +12 -12
  8. package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.js +22 -22
  9. package/lib-commonjs/commands/config/configUtils.d.ts +123 -123
  10. package/lib-commonjs/commands/config/configUtils.js +380 -380
  11. package/lib-commonjs/commands/config/dependencyConfig.d.ts +37 -37
  12. package/lib-commonjs/commands/config/dependencyConfig.js +227 -227
  13. package/lib-commonjs/commands/config/projectConfig.d.ts +27 -27
  14. package/lib-commonjs/commands/config/projectConfig.js +180 -180
  15. package/lib-commonjs/commands/healthCheck/healthCheckList.d.ts +6 -6
  16. package/lib-commonjs/commands/healthCheck/healthCheckList.js +20 -20
  17. package/lib-commonjs/commands/healthCheck/healthCheckList.js.map +1 -1
  18. package/lib-commonjs/commands/healthCheck/healthChecks.d.ts +7 -7
  19. package/lib-commonjs/commands/healthCheck/healthChecks.js +123 -123
  20. package/lib-commonjs/commands/initWindows/initWindows.d.ts +46 -46
  21. package/lib-commonjs/commands/initWindows/initWindows.js +243 -243
  22. package/lib-commonjs/commands/initWindows/initWindowsOptions.d.ts +15 -15
  23. package/lib-commonjs/commands/initWindows/initWindowsOptions.js +37 -37
  24. package/lib-commonjs/commands/runWindows/runWindows.d.ts +10 -10
  25. package/lib-commonjs/commands/runWindows/runWindows.js +321 -321
  26. package/lib-commonjs/commands/runWindows/runWindowsOptions.d.ts +56 -56
  27. package/lib-commonjs/commands/runWindows/runWindowsOptions.js +132 -132
  28. package/lib-commonjs/e2etest/autolink.test.d.ts +6 -6
  29. package/lib-commonjs/e2etest/autolink.test.js +366 -366
  30. package/lib-commonjs/e2etest/dependencyConfig.test.d.ts +6 -6
  31. package/lib-commonjs/e2etest/dependencyConfig.test.js +129 -129
  32. package/lib-commonjs/e2etest/healthChecks.test.d.ts +6 -6
  33. package/lib-commonjs/e2etest/healthChecks.test.js +30 -30
  34. package/lib-commonjs/e2etest/initWindows.test.d.ts +6 -6
  35. package/lib-commonjs/e2etest/initWindows.test.js +42 -42
  36. package/lib-commonjs/e2etest/projectConfig.test.d.ts +6 -6
  37. package/lib-commonjs/e2etest/projectConfig.test.js +110 -110
  38. package/lib-commonjs/e2etest/projectConfig.utils.d.ts +8 -8
  39. package/lib-commonjs/e2etest/projectConfig.utils.js +76 -76
  40. package/lib-commonjs/e2etest/runWindows.test.d.ts +6 -6
  41. package/lib-commonjs/e2etest/runWindows.test.js +60 -60
  42. package/lib-commonjs/e2etest/typesUpToDate.test.d.ts +6 -0
  43. package/lib-commonjs/e2etest/typesUpToDate.test.js +21 -0
  44. package/lib-commonjs/e2etest/typesUpToDate.test.js.map +1 -0
  45. package/lib-commonjs/generator-common/index.d.ts +39 -39
  46. package/lib-commonjs/generator-common/index.js +242 -242
  47. package/lib-commonjs/generator-windows/index.d.ts +10 -10
  48. package/lib-commonjs/generator-windows/index.js +316 -316
  49. package/lib-commonjs/index.d.ts +50 -50
  50. package/lib-commonjs/index.js +77 -77
  51. package/lib-commonjs/utils/build.d.ts +12 -12
  52. package/lib-commonjs/utils/build.js +84 -84
  53. package/lib-commonjs/utils/checkRequirements.d.ts +6 -6
  54. package/lib-commonjs/utils/checkRequirements.js +69 -69
  55. package/lib-commonjs/utils/commandWithProgress.d.ts +21 -21
  56. package/lib-commonjs/utils/commandWithProgress.js +149 -149
  57. package/lib-commonjs/utils/deploy.d.ts +12 -12
  58. package/lib-commonjs/utils/deploy.js +353 -353
  59. package/lib-commonjs/utils/info.d.ts +6 -6
  60. package/lib-commonjs/utils/info.js +28 -28
  61. package/lib-commonjs/utils/msbuildtools.d.ts +28 -28
  62. package/lib-commonjs/utils/msbuildtools.js +273 -273
  63. package/lib-commonjs/utils/msbuildtools.js.map +1 -1
  64. package/lib-commonjs/utils/pathHelpers.d.ts +9 -9
  65. package/lib-commonjs/utils/pathHelpers.js +36 -36
  66. package/lib-commonjs/utils/telemetryHelpers.d.ts +29 -29
  67. package/lib-commonjs/utils/telemetryHelpers.js +120 -120
  68. package/lib-commonjs/utils/version.d.ts +19 -19
  69. package/lib-commonjs/utils/version.js +109 -109
  70. package/lib-commonjs/utils/vsInstalls.d.ts +34 -34
  71. package/lib-commonjs/utils/vsInstalls.js +99 -99
  72. package/lib-commonjs/utils/vstools.d.ts +16 -16
  73. package/lib-commonjs/utils/vstools.js +189 -189
  74. package/lib-commonjs/utils/winappdeploytool.d.ts +24 -24
  75. package/lib-commonjs/utils/winappdeploytool.js +108 -108
  76. 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;