Skip to content

Commit

Permalink
Namespace refactor for the nodejs integration extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Sep 17, 2024
1 parent 9d547b0 commit 9367190
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;

var builder = DistributedApplication.CreateBuilder(args);

builder.AddViteApp("vite-demo")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using Aspire.Hosting;
using Aspire.Hosting.ApplicationModel;
using Aspire.Hosting.ApplicationModel;
using Aspire.Hosting.Lifecycle;
using Aspire.Hosting.Utils;
using CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
using Microsoft.Extensions.Hosting;

namespace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
namespace Aspire.Hosting;

public static class NodeJSHostingExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@

namespace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;


/// <summary>
/// Represents a Node package installer.
/// </summary>
/// <param name="packageManager">The package manager to use.</param>
/// <param name="loggerService">The logger service to use.</param>
/// <param name="notificationService">The notification service to use.</param>
class NodePackageInstaller(string packageManager, ResourceLoggerService loggerService, ResourceNotificationService notificationService)
internal class NodePackageInstaller(string packageManager, ResourceLoggerService loggerService, ResourceNotificationService notificationService)
{
/// <summary>
/// Finds the Node.js resources using the specified package manager and installs the packages.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
namespace Aspire.Hosting.Utils;

// Copied from https://github.com/dotnet/aspire/blob/50ca9fa670af5c70782dc75d2961956b06f1a403/src/Shared/PathNormalizer.cs
internal static class PathNormalizer
Expand Down

0 comments on commit 9367190

Please sign in to comment.