Skip to content

Commit

Permalink
Merge pull request #2587 from abpframework/maliming/module-without-ui
Browse files Browse the repository at this point in the history
Remove the angular folder on module project creation with --no-ui option
  • Loading branch information
hikalkan authored Jan 8, 2020
2 parents 748efaf + 714ab6f commit a9715d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;

namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
{
Expand All @@ -14,7 +15,7 @@ public RemoveFolderStep(string folderPath)
public override void Execute(ProjectBuildContext context)
{
//Remove the folder content
var folderPathWithSlash = _folderPath + "/";
var folderPathWithSlash = _folderPath.EnsureEndsWith('/');
context.Files.RemoveAll(file => file.Name.StartsWith(folderPathWithSlash));

//Remove the folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ private void DeleteUnrelatedProjects(ProjectBuildContext context, List<ProjectBu
"MyCompanyName.MyProjectName.Web.Unified",
projectFolderPath: "/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified"
));

steps.Add(new RemoveFolderStep("/angular"));
}

private void RandomizeSslPorts(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps)
Expand Down

0 comments on commit a9715d9

Please sign in to comment.