Browse Source
Merge pull request #12683 from abpframework/cli-template-remove-improvements
Cli: Improve <TEMPLATE-REMOVE>
pull/12684/head
Galip Tolga Erdem
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Files/FileEntryExtensions.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
|
|
|
@ -39,9 +39,9 @@ public static class FileEntryExtensions |
|
|
|
{ |
|
|
|
//TODO: What if we use inline like: <TEMPLATE-REMOVE IF-NOT="..."> some-code </TEMPLATE-REMOVE>
|
|
|
|
//TODO: This logic skips the code in that case. Should handle it
|
|
|
|
++i; |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (i < lines.Length) |
|
|
|
{ |
|
|
|
newLines.Add(lines[i]); |
|
|
|
@ -146,6 +146,7 @@ public static class FileEntryExtensions |
|
|
|
var condition = marker.Trim() |
|
|
|
.RemovePreFix("//").Trim() |
|
|
|
.RemovePreFix("@*").Trim() |
|
|
|
.RemovePreFix("#").Trim() |
|
|
|
.RemovePreFix("<!--").Trim() |
|
|
|
.RemovePreFix("<TEMPLATE-REMOVE").Trim() |
|
|
|
.RemovePostFix("*@").Trim() |
|
|
|
|
|
|
|
@ -37,6 +37,7 @@ public abstract class AppTemplateBase : TemplateInfo |
|
|
|
RandomizeSslPorts(context, steps); |
|
|
|
RandomizeStringEncryption(context, steps); |
|
|
|
UpdateNuGetConfig(context, steps); |
|
|
|
ConfigureDockerFiles(context, steps); |
|
|
|
ChangeConnectionString(context, steps); |
|
|
|
CleanupFolderHierarchy(context, steps); |
|
|
|
|
|
|
|
|