|
|
@ -22,7 +22,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
public override IEnumerable<ProjectBuildPipelineStep> GetCustomSteps(ProjectBuildContext context) |
|
|
public override IEnumerable<ProjectBuildPipelineStep> GetCustomSteps(ProjectBuildContext context) |
|
|
{ |
|
|
{ |
|
|
var steps = base.GetCustomSteps(context).ToList(); |
|
|
var steps = base.GetCustomSteps(context).ToList(); |
|
|
|
|
|
|
|
|
SwitchDatabaseProvider(context, steps); |
|
|
SwitchDatabaseProvider(context, steps); |
|
|
DeleteUnrelatedProjects(context, steps); |
|
|
DeleteUnrelatedProjects(context, steps); |
|
|
RemoveMigrations(context, steps); |
|
|
RemoveMigrations(context, steps); |
|
|
@ -130,7 +130,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
throw new AbpException("Unkown UI framework: " + context.BuildArgs.UiFramework); |
|
|
throw new AbpException("Unkown UI framework: " + context.BuildArgs.UiFramework); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void RandomizeSslPorts(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void RandomizeSslPorts(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
if (context.BuildArgs.ExtraProperties.ContainsKey("no-random-port")) |
|
|
if (context.BuildArgs.ExtraProperties.ContainsKey("no-random-port")) |
|
|
@ -157,7 +157,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
) |
|
|
) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void CleanupFolderHierarchy(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void CleanupFolderHierarchy(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
if (context.BuildArgs.UiFramework != UiFramework.Angular) |
|
|
if (context.BuildArgs.UiFramework != UiFramework.Angular) |
|
|
@ -165,7 +165,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
steps.Add(new MoveFolderStep("/aspnet-core/", "/")); |
|
|
steps.Add(new MoveFolderStep("/aspnet-core/", "/")); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void RemoveMigrations(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void RemoveMigrations(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
steps.Add(new RemoveFolderStep("/aspnet-core/MyCompanyName.MyProjectName/Migrations")); |
|
|
steps.Add(new RemoveFolderStep("/aspnet-core/MyCompanyName.MyProjectName/Migrations")); |
|
|
@ -202,12 +202,12 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void RandomizeStringEncryption(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void RandomizeStringEncryption(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
steps.Add(new RandomizeStringEncryptionStep()); |
|
|
steps.Add(new RandomizeStringEncryptionStep()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected static void RandomizeAuthServerPassPhrase(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected static void RandomizeAuthServerPassPhrase(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
steps.Add(new RandomizeAuthServerPassPhraseStep()); |
|
|
steps.Add(new RandomizeAuthServerPassPhraseStep()); |
|
|
@ -217,7 +217,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
{ |
|
|
{ |
|
|
steps.Add(new UpdateNuGetConfigStep("/aspnet-core/NuGet.Config")); |
|
|
steps.Add(new UpdateNuGetConfigStep("/aspnet-core/NuGet.Config")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void ChangeConnectionString(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void ChangeConnectionString(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
if (context.BuildArgs.ConnectionString != null) |
|
|
if (context.BuildArgs.ConnectionString != null) |
|
|
@ -230,7 +230,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
steps.Add(new ConnectionStringRenameStep()); |
|
|
steps.Add(new ConnectionStringRenameStep()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void ConfigureTheme(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void ConfigureTheme(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
if (!context.BuildArgs.Theme.HasValue) |
|
|
if (!context.BuildArgs.Theme.HasValue) |
|
|
@ -256,9 +256,9 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
steps.Add(new ChangeThemeStep()); |
|
|
steps.Add(new ChangeThemeStep()); |
|
|
ReplaceLeptonXThemePackagesFromPackageJsonFiles(steps, isProTemplate: IsPro(), uiFramework: context.BuildArgs.UiFramework, theme: context.BuildArgs.Theme, version: context.BuildArgs.Version); |
|
|
ReplaceLeptonXThemePackagesFromPackageJsonFiles(steps, isProTemplate: IsPro(), uiFramework: context.BuildArgs.UiFramework, theme: context.BuildArgs.Theme, version: context.BuildArgs.Version ?? context.TemplateFile.Version); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static void RemoveBlazorWasmProjects(List<ProjectBuildPipelineStep> steps) |
|
|
private static void RemoveBlazorWasmProjects(List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Blazor.WebAssembly.Server", |
|
|
steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Blazor.WebAssembly.Server", |
|
|
@ -269,7 +269,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
projectFolderPath: "/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Shared")); |
|
|
projectFolderPath: "/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Shared")); |
|
|
steps.Add(new RemoveFolderStep("/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly")); |
|
|
steps.Add(new RemoveFolderStep("/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void RemoveThemeLogoFolders(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
private void RemoveThemeLogoFolders(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
if (context.BuildArgs.Theme != Theme.Lepton && IsPro()) |
|
|
if (context.BuildArgs.Theme != Theme.Lepton && IsPro()) |
|
|
@ -282,7 +282,7 @@ public abstract class AppNoLayersTemplateBase : TemplateInfo |
|
|
steps.Add(new RemoveFilesStep("/wwwroot/images/logo/leptonx/")); |
|
|
steps.Add(new RemoveFilesStep("/wwwroot/images/logo/leptonx/")); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void SetDbmsSymbols(ProjectBuildContext context) |
|
|
protected void SetDbmsSymbols(ProjectBuildContext context) |
|
|
{ |
|
|
{ |
|
|
switch (context.BuildArgs.DatabaseManagementSystem) |
|
|
switch (context.BuildArgs.DatabaseManagementSystem) |
|
|
|