From f09aea163d1be6c15d950a1cd18970f04f2af405 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 22 Jun 2021 11:22:00 +0300 Subject: [PATCH 1/2] Cli: fix no-ui option for module templates --- .../Templates/Module/ModuleTemplateBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs index e26e4a6d25..663d4e9bad 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs @@ -40,6 +40,14 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.Module "MyCompanyName.MyProjectName.Blazor" )); + steps.Add(new RemoveProjectFromSolutionStep( + "MyCompanyName.MyProjectName.Blazor.Server" + )); + + steps.Add(new RemoveProjectFromSolutionStep( + "MyCompanyName.MyProjectName.Blazor.WebAssembly" + )); + steps.Add(new RemoveProjectFromSolutionStep( "MyCompanyName.MyProjectName.Blazor.Host", projectFolderPath: "/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host" From a0ca38564ea434825cda357712379b85cb3fb4c0 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 22 Jun 2021 12:57:54 +0300 Subject: [PATCH 2/2] Update Module.md --- docs/en/Startup-Templates/Module.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/docs/en/Startup-Templates/Module.md b/docs/en/Startup-Templates/Module.md index 84b7525944..cdcb964bef 100644 --- a/docs/en/Startup-Templates/Module.md +++ b/docs/en/Startup-Templates/Module.md @@ -20,23 +20,9 @@ abp new Acme.IssueManagement -t module - `Acme.IssueManagement` is the solution name, like *YourCompany.YourProduct*. You can use single level, two-levels or three-levels naming. -### Specify the UI Framework - -This template provides multiple UI frameworks: - -* `mvc`: ASP.NET Core MVC UI with Razor Pages (default) -* `blazor`: Blazor UI -* `angular`: Angular UI - -Use `-u` or `--ui` option to specify the UI framework: - -````bash -abp new Acme.IssueManagement -t module -u angular -```` - ### Without User Interface -The template comes with an MVC UI by default. You can use `--no-ui` option to not include the UI layer. +The template comes with MVC, Blazor & Angular user interfaces by default. You can use `--no-ui` option to not include any of these UI layers. ````bash abp new Acme.IssueManagement -t module --no-ui @@ -179,7 +165,7 @@ You should run the application with the given order: ### Angular UI -If you choose `Angular` as the UI framework (using the `-u angular` option), the solution will have a folder called `angular` in it. This is where the client-side code is located. When you open that folder in an IDE, the folder structure will look like below: +The solution will have a folder called `angular` in it. This is where the Angular client-side code is located. When you open that folder in an IDE, the folder structure will look like below: ![Folder structure of ABP Angular module project](../images/angular-module-folder-structure.png)