@react-native-windows/cli 0.0.0-canary.1 → 0.0.0-canary.102

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 (123) hide show
  1. package/README.md +49 -0
  2. package/lib-commonjs/config/configUtils.d.ts +27 -6
  3. package/lib-commonjs/config/configUtils.js +122 -45
  4. package/lib-commonjs/config/configUtils.js.map +1 -1
  5. package/lib-commonjs/config/dependencyConfig.d.ts +3 -3
  6. package/lib-commonjs/config/dependencyConfig.js +128 -54
  7. package/lib-commonjs/config/dependencyConfig.js.map +1 -1
  8. package/lib-commonjs/config/projectConfig.d.ts +6 -3
  9. package/lib-commonjs/config/projectConfig.js +68 -12
  10. package/lib-commonjs/config/projectConfig.js.map +1 -1
  11. package/lib-commonjs/e2etest/autolink.test.d.ts +6 -0
  12. package/lib-commonjs/e2etest/autolink.test.js +435 -0
  13. package/lib-commonjs/e2etest/autolink.test.js.map +1 -0
  14. package/lib-commonjs/e2etest/dependencyConfig.test.d.ts +6 -0
  15. package/lib-commonjs/e2etest/dependencyConfig.test.js +162 -0
  16. package/lib-commonjs/e2etest/dependencyConfig.test.js.map +1 -0
  17. package/lib-commonjs/e2etest/projectConfig.test.d.ts +6 -0
  18. package/lib-commonjs/e2etest/projectConfig.test.js +125 -0
  19. package/lib-commonjs/e2etest/projectConfig.test.js.map +1 -0
  20. package/lib-commonjs/e2etest/projectConfig.utils.d.ts +4 -0
  21. package/lib-commonjs/e2etest/projectConfig.utils.js +63 -0
  22. package/lib-commonjs/e2etest/projectConfig.utils.js.map +1 -0
  23. package/lib-commonjs/e2etest/runWindows.test.d.ts +6 -0
  24. package/lib-commonjs/e2etest/runWindows.test.js +61 -0
  25. package/lib-commonjs/e2etest/runWindows.test.js.map +1 -0
  26. package/lib-commonjs/generator-common/index.d.ts +16 -0
  27. package/lib-commonjs/generator-common/index.js +60 -39
  28. package/lib-commonjs/generator-common/index.js.map +1 -1
  29. package/lib-commonjs/generator-windows/index.d.ts +2 -2
  30. package/lib-commonjs/generator-windows/index.js +250 -145
  31. package/lib-commonjs/generator-windows/index.js.map +1 -1
  32. package/lib-commonjs/healthChecks.d.ts +2 -0
  33. package/lib-commonjs/healthChecks.js +88 -0
  34. package/lib-commonjs/healthChecks.js.map +1 -0
  35. package/lib-commonjs/index.d.ts +5 -0
  36. package/lib-commonjs/index.js +24 -6
  37. package/lib-commonjs/index.js.map +1 -1
  38. package/lib-commonjs/runWindows/runWindows.js +203 -55
  39. package/lib-commonjs/runWindows/runWindows.js.map +1 -1
  40. package/lib-commonjs/runWindows/runWindowsOptions.d.ts +16 -10
  41. package/lib-commonjs/runWindows/runWindowsOptions.js +19 -11
  42. package/lib-commonjs/runWindows/runWindowsOptions.js.map +1 -1
  43. package/lib-commonjs/runWindows/utils/autolink.d.ts +88 -1
  44. package/lib-commonjs/runWindows/utils/autolink.js +592 -250
  45. package/lib-commonjs/runWindows/utils/autolink.js.map +1 -1
  46. package/lib-commonjs/runWindows/utils/build.d.ts +1 -2
  47. package/lib-commonjs/runWindows/utils/build.js +26 -33
  48. package/lib-commonjs/runWindows/utils/build.js.map +1 -1
  49. package/lib-commonjs/runWindows/utils/checkRequirements.js +11 -7
  50. package/lib-commonjs/runWindows/utils/checkRequirements.js.map +1 -1
  51. package/lib-commonjs/runWindows/utils/commandWithProgress.d.ts +11 -3
  52. package/lib-commonjs/runWindows/utils/commandWithProgress.js +57 -22
  53. package/lib-commonjs/runWindows/utils/commandWithProgress.js.map +1 -1
  54. package/lib-commonjs/runWindows/utils/deploy.d.ts +1 -1
  55. package/lib-commonjs/runWindows/utils/deploy.js +164 -82
  56. package/lib-commonjs/runWindows/utils/deploy.js.map +1 -1
  57. package/lib-commonjs/runWindows/utils/info.js +5 -2
  58. package/lib-commonjs/runWindows/utils/info.js.map +1 -1
  59. package/lib-commonjs/runWindows/utils/msbuildtools.d.ts +9 -5
  60. package/lib-commonjs/runWindows/utils/msbuildtools.js +95 -58
  61. package/lib-commonjs/runWindows/utils/msbuildtools.js.map +1 -1
  62. package/lib-commonjs/runWindows/utils/telemetryHelpers.d.ts +29 -0
  63. package/lib-commonjs/runWindows/utils/telemetryHelpers.js +109 -0
  64. package/lib-commonjs/runWindows/utils/telemetryHelpers.js.map +1 -0
  65. package/lib-commonjs/runWindows/utils/version.d.ts +4 -4
  66. package/lib-commonjs/runWindows/utils/version.js.map +1 -1
  67. package/lib-commonjs/runWindows/utils/vsInstalls.d.ts +4 -1
  68. package/lib-commonjs/runWindows/utils/vsInstalls.js +22 -7
  69. package/lib-commonjs/runWindows/utils/vsInstalls.js.map +1 -1
  70. package/lib-commonjs/runWindows/utils/vstools.d.ts +1 -0
  71. package/lib-commonjs/runWindows/utils/vstools.js +44 -25
  72. package/lib-commonjs/runWindows/utils/vstools.js.map +1 -1
  73. package/lib-commonjs/runWindows/utils/winappdeploytool.d.ts +3 -3
  74. package/lib-commonjs/runWindows/utils/winappdeploytool.js +17 -14
  75. package/lib-commonjs/runWindows/utils/winappdeploytool.js.map +1 -1
  76. package/package.json +43 -27
  77. package/powershell/Add-AppDevPackage.ps1 +2 -2
  78. package/powershell/WindowsStoreAppUtils.ps1 +11 -1
  79. package/CHANGELOG.json +0 -20
  80. package/CHANGELOG.md +0 -13
  81. package/templates/_gitignore +0 -92
  82. package/templates/b_gitignore +0 -1
  83. package/templates/cpp/keys/MyApp_TemporaryKey.pfx +0 -0
  84. package/templates/cpp/proj/MyApp.sln +0 -194
  85. package/templates/cpp/proj/MyApp.vcxproj +0 -220
  86. package/templates/cpp/proj/MyApp.vcxproj.filters +0 -63
  87. package/templates/cpp/proj/packages.config +0 -6
  88. package/templates/cpp/src/App.cpp +0 -80
  89. package/templates/cpp/src/App.h +0 -25
  90. package/templates/cpp/src/App.idl +0 -3
  91. package/templates/cpp/src/AutolinkedNativeModules.g.cpp +0 -13
  92. package/templates/cpp/src/AutolinkedNativeModules.g.h +0 -10
  93. package/templates/cpp/src/AutolinkedNativeModules.g.targets +0 -6
  94. package/templates/cpp/src/MainPage.cpp +0 -24
  95. package/templates/cpp/src/MainPage.h +0 -21
  96. package/templates/cpp/src/MainPage.idl +0 -8
  97. package/templates/cpp/src/PropertySheet.props +0 -16
  98. package/templates/cpp/src/ReactPackageProvider.cpp +0 -18
  99. package/templates/cpp/src/ReactPackageProvider.h +0 -15
  100. package/templates/cpp/src/pch.cpp +0 -1
  101. package/templates/cpp/src/pch.h +0 -26
  102. package/templates/cs/keys/MyApp_TemporaryKey.pfx +0 -0
  103. package/templates/cs/proj/MyApp.csproj +0 -189
  104. package/templates/cs/proj/MyApp.sln +0 -208
  105. package/templates/cs/src/App.xaml.cs +0 -56
  106. package/templates/cs/src/AutolinkedNativeModules.g.cs +0 -13
  107. package/templates/cs/src/AutolinkedNativeModules.g.targets +0 -6
  108. package/templates/cs/src/MainPage.xaml.cs +0 -33
  109. package/templates/cs/src/Properties/AssemblyInfo.cs +0 -29
  110. package/templates/cs/src/Properties/Default.rd.xml +0 -32
  111. package/templates/index.windows.bundle +0 -9
  112. package/templates/metro.config.js +0 -29
  113. package/templates/shared/assets/LockScreenLogo.scale-200.png +0 -0
  114. package/templates/shared/assets/SplashScreen.scale-200.png +0 -0
  115. package/templates/shared/assets/Square150x150Logo.scale-200.png +0 -0
  116. package/templates/shared/assets/Square44x44Logo.scale-200.png +0 -0
  117. package/templates/shared/assets/Square44x44Logo.targetsize-24_altform-unplated.png +0 -0
  118. package/templates/shared/assets/StoreLogo.png +0 -0
  119. package/templates/shared/assets/Wide310x150Logo.scale-200.png +0 -0
  120. package/templates/shared/proj/NuGet.Config +0 -13
  121. package/templates/shared/src/App.xaml +0 -10
  122. package/templates/shared/src/MainPage.xaml +0 -21
  123. package/templates/shared/src/Package.appxmanifest +0 -50
@@ -1,29 +0,0 @@
1
- using System.Reflection;
2
- using System.Runtime.CompilerServices;
3
- using System.Runtime.InteropServices;
4
-
5
- // General Information about an assembly is controlled through the following
6
- // set of attributes. Change these attribute values to modify the information
7
- // associated with an assembly.
8
- [assembly: AssemblyTitle("{{ name }}")]
9
- [assembly: AssemblyDescription("")]
10
- [assembly: AssemblyConfiguration("")]
11
- [assembly: AssemblyCompany("")]
12
- [assembly: AssemblyProduct("{{ name }}")]
13
- [assembly: AssemblyCopyright("Copyright © 2019")]
14
- [assembly: AssemblyTrademark("")]
15
- [assembly: AssemblyCulture("")]
16
-
17
- // Version information for an assembly consists of the following four values:
18
- //
19
- // Major Version
20
- // Minor Version
21
- // Build Number
22
- // Revision
23
- //
24
- // You can specify all the values or you can default the Build and Revision Numbers
25
- // by using the '*' as shown below:
26
- // [assembly: AssemblyVersion("1.0.*")]
27
- [assembly: AssemblyVersion("1.0.0.0")]
28
- [assembly: AssemblyFileVersion("1.0.0.0")]
29
- [assembly: ComVisible(false)]
@@ -1,32 +0,0 @@
1
- <!--
2
- This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
3
- developers. However, you can modify these parameters to modify the behavior of the .NET Native
4
- optimizer.
5
-
6
- Runtime Directives are documented at https://go.microsoft.com/fwlink/?LinkID=391919
7
-
8
- To fully enable reflection for App1.MyClass and all of its public/private members
9
- <Type Name="App1.MyClass" Dynamic="Required All"/>
10
-
11
- To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
12
- <TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
13
-
14
- Using the Namespace directive to apply reflection policy to all the types in a particular namespace
15
- <Namespace Name="DataClasses.ViewModels" Serialize="All" />
16
- -->
17
-
18
- <Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
19
- <Application>
20
- <!--
21
- An Assembly element with Name="*Application*" applies to all assemblies in
22
- the application package. The asterisks are not wildcards.
23
- -->
24
- <Assembly Name="*Application*" Dynamic="Required All" />
25
-
26
-
27
- <!-- Add your application specific runtime directives here. -->
28
- <Namespace Name="Microsoft.ReactNative" Dynamic="Required All" MarshalObject="Required All" />
29
- <Namespace Name="Microsoft.ReactNative.Managed" Dynamic="Required All" MarshalObject="Required All" />
30
-
31
- </Application>
32
- </Directives>
@@ -1,9 +0,0 @@
1
- /**
2
- *
3
- * Be sure to generate this file using the CLI:
4
- *
5
- * npx react-native bundle --platform windows --entry-file index.js
6
- * --bundle-output windows\{{ name }}\Bundle\index.windows.bundle
7
- * --assets-dest windows\{{ name }}\Bundle
8
- *
9
- */
@@ -1,29 +0,0 @@
1
- /**
2
- * Metro configuration for React Native
3
- * https://github.com/facebook/react-native
4
- *
5
- * @format
6
- */
7
- const path = require('path');
8
- const blacklist = require('metro-config/src/defaults/blacklist');
9
-
10
- module.exports = {
11
- resolver: {
12
- blacklistRE: blacklist([
13
- // This stops "react-native run-windows" from causing the metro server to crash if its already running
14
- new RegExp(
15
- `${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`,
16
- ),
17
- // This prevents "react-native run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip
18
- /.*\.ProjectImports\.zip/,
19
- ]),
20
- },
21
- transformer: {
22
- getTransformOptions: async () => ({
23
- transform: {
24
- experimentalImportSupport: false,
25
- inlineRequires: false,
26
- },
27
- }),
28
- },
29
- };
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <configuration>
3
- <config>
4
- <add key="repositoryPath" value="packages" />
5
- </config>
6
- <packageSources>
7
- {{#nuGetTestFeed}}
8
- <add key="NuGetTestFeed" value="{{ nuGetTestFeed }}" />
9
- {{/nuGetTestFeed}}
10
- <add key="Nuget.org" value="https://api.nuget.org/v3/index.json" />
11
- <add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
12
- </packageSources>
13
- </configuration>
@@ -1,10 +0,0 @@
1
- <react:ReactApplication
2
- x:Class="{{ namespace }}.App"
3
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
- xmlns:local="using:{{ namespace }}"
6
- xmlns:react="using:Microsoft.ReactNative">
7
- <Application.Resources>
8
- <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
9
- </Application.Resources>
10
- </react:ReactApplication>
@@ -1,21 +0,0 @@
1
- <Page
2
- x:Class="{{ namespace }}.MainPage"
3
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
- xmlns:local="using:{{ namespace }}"
6
- xmlns:react="using:Microsoft.ReactNative"
7
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9
- mc:Ignorable="d"
10
- Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
11
- <react:ReactRootView
12
- {{#languageIsCpp}}
13
- x:Name="ReactRootView"
14
- {{/languageIsCpp}}
15
- {{^languageIsCpp}}
16
- x:Name="reactRootView"
17
- {{/languageIsCpp}}
18
- ComponentName="{{ name }}"
19
- Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
20
- MinHeight="400"/>
21
- </Page>
@@ -1,50 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
-
3
- <Package
4
- xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
5
- xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
6
- xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
7
- IgnorableNamespaces="uap mp">
8
-
9
- <Identity
10
- Name="{{ packageGuid }}"
11
- Publisher="CN={{ currentUser }}"
12
- Version="1.0.0.0" />
13
-
14
- <mp:PhoneIdentity PhoneProductId="{{ packageGuid }}" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
15
-
16
- <Properties>
17
- <DisplayName>{{ name }}</DisplayName>
18
- <PublisherDisplayName>{{ currentUser }}</PublisherDisplayName>
19
- <Logo>Assets\StoreLogo.png</Logo>
20
- </Properties>
21
-
22
- <Dependencies>
23
- <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
24
- </Dependencies>
25
-
26
- <Resources>
27
- <Resource Language="x-generate"/>
28
- </Resources>
29
-
30
- <Applications>
31
- <Application
32
- Id="App"
33
- Executable="$targetnametoken$.exe"
34
- EntryPoint="{{ namespace }}.App">
35
- <uap:VisualElements
36
- DisplayName="{{ name }}"
37
- Square150x150Logo="Assets\Square150x150Logo.png"
38
- Square44x44Logo="Assets\Square44x44Logo.png"
39
- Description="{{ name }}"
40
- BackgroundColor="transparent">
41
- <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
42
- <uap:SplashScreen Image="Assets\SplashScreen.png" />
43
- </uap:VisualElements>
44
- </Application>
45
- </Applications>
46
-
47
- <Capabilities>
48
- <Capability Name="internetClient" />
49
- </Capabilities>
50
- </Package>