You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename Aspire.Hosting.NodeJs to Aspire.Hosting.JavaScript (#12681)
* Rename Aspire.Hosting.NodeJs to Aspire.Hosting.JavaScript
This makes the library consistent to use language naming, and not a single technology. It allows for more JS features in the future that aren't tied to Node.js.
Since the library is being renamed, I also removed the Obsolete APIs since there is no reason to ship them in the new library.
Contributes to #12058
* Fix build
* Fix Helix tests
Copy file name to clipboardExpand all lines: src/Aspire.Hosting.JavaScript/JavaScriptHostingExtensions.cs
+3-66Lines changed: 3 additions & 66 deletions
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,10 @@
3
3
4
4
#pragma warning disable ASPIREDOCKERFILEBUILDER001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5
5
6
-
usingSystem.ComponentModel;
7
6
usingSystem.Globalization;
8
-
usingSystem.Runtime.CompilerServices;
9
7
usingSystem.Text.Json;
10
8
usingAspire.Hosting.ApplicationModel;
11
-
usingAspire.Hosting.NodeJs;
9
+
usingAspire.Hosting.JavaScript;
12
10
usingAspire.Hosting.Utils;
13
11
usingMicrosoft.Extensions.DependencyInjection;
14
12
usingMicrosoft.Extensions.Hosting;
@@ -18,42 +16,12 @@
18
16
namespaceAspire.Hosting;
19
17
20
18
/// <summary>
21
-
/// Provides extension methods for adding Node applications to an <see cref="IDistributedApplicationBuilder"/>.
19
+
/// Provides extension methods for adding JavaScript applications to an <see cref="IDistributedApplicationBuilder"/>.
22
20
/// </summary>
23
-
publicstaticclassNodeAppHostingExtension
21
+
publicstaticclassJavaScriptHostingExtensions
24
22
{
25
23
privateconststringDefaultNodeVersion="22";
26
24
27
-
/// <summary>
28
-
/// Adds a node application to the application model. Node should be available on the PATH.
29
-
/// </summary>
30
-
/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> to add the resource to.</param>
31
-
/// <param name="name">The name of the resource.</param>
32
-
/// <param name="scriptPath">The path to the script that Node will execute.</param>
33
-
/// <param name="workingDirectory">The working directory to use for the command. If null, the directory of the <paramref name="scriptPath"/> is used.</param>
34
-
/// <param name="args">The arguments to pass to the command.</param>
35
-
/// <returns>A reference to the <see cref="IResourceBuilder{T}"/>.</returns>
36
-
[Obsolete("Use AddNodeApp that takes an appDirectory and relative scriptPath instead.")]
0 commit comments