mirror of https://github.com/abpframework/abp.git
committed by
GitHub
8 changed files with 136 additions and 118 deletions
@ -1,22 +0,0 @@ |
|||||
using System.Linq; |
|
||||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|
||||
|
|
||||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|
||||
{ |
|
||||
public class RemoveCmsKitStep : ProjectBuildPipelineStep |
|
||||
{ |
|
||||
public override void Execute(ProjectBuildContext context) |
|
||||
{ |
|
||||
var commonFiles = context.Files.Where(f => |
|
||||
f.Name.EndsWith(".csproj") || |
|
||||
f.Name.EndsWith(".cs") || |
|
||||
f.Name.EndsWith(".json") || |
|
||||
f.Name.EndsWith(".cshtml")); |
|
||||
|
|
||||
foreach (var file in commonFiles) |
|
||||
{ |
|
||||
file.RemoveTemplateCodeIfNot("CMS-KIT"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,19 +0,0 @@ |
|||||
using System.Linq; |
|
||||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|
||||
|
|
||||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|
||||
{ |
|
||||
public class RemoveEfCoreRelatedCodeStep : ProjectBuildPipelineStep |
|
||||
{ |
|
||||
public override void Execute(ProjectBuildContext context) |
|
||||
{ |
|
||||
foreach (var file in context.Files) |
|
||||
{ |
|
||||
if (file.Name.EndsWith(".cs") || file.Name.EndsWith(".csproj") || file.Name.EndsWith(".json")) |
|
||||
{ |
|
||||
file.RemoveTemplateCodeIfNot("EFCORE"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,21 +0,0 @@ |
|||||
using System.Linq; |
|
||||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|
||||
|
|
||||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|
||||
{ |
|
||||
public class RemoveGlobalFeaturesPackageStep : ProjectBuildPipelineStep |
|
||||
{ |
|
||||
public override void Execute(ProjectBuildContext context) |
|
||||
{ |
|
||||
var commonFiles = context.Files.Where(f => |
|
||||
f.Name.EndsWith(".csproj") || |
|
||||
f.Name.EndsWith(".cs") || |
|
||||
f.Name.EndsWith(".cshtml")); |
|
||||
|
|
||||
foreach (var file in commonFiles) |
|
||||
{ |
|
||||
file.RemoveTemplateCodeIf("CMS-KIT"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,20 +0,0 @@ |
|||||
using System; |
|
||||
using System.Linq; |
|
||||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|
||||
|
|
||||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|
||||
{ |
|
||||
public class RemovePublicRedisStep : ProjectBuildPipelineStep |
|
||||
{ |
|
||||
public override void Execute(ProjectBuildContext context) |
|
||||
{ |
|
||||
foreach (var file in context.Files) |
|
||||
{ |
|
||||
if (file.Name.EndsWith(".cs") || file.Name.EndsWith(".csproj") || file.Name.EndsWith(".json")) |
|
||||
{ |
|
||||
file.RemoveTemplateCodeIfNot("PUBLIC-REDIS"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue