Browse Source
Merge pull request #14495 from abpframework/volo/issues/11966
Cli: Add `--skip-bundling` option for blazor wasm project creation
pull/14531/head
Alper Ebiçoğlu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
13 additions and
1 deletions
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs
@ -105,7 +105,11 @@ public class NewCommand : ProjectCreationCommandBase, IConsoleCommand, ITransien
await RunInstallLibsForWebTemplateAsync ( projectArgs ) ;
}
await RunBundleForBlazorWasmTemplateAsync ( projectArgs ) ;
var skipBundling = commandLineArgs . Options . ContainsKey ( Options . SkipBundling . Long ) | | commandLineArgs . Options . ContainsKey ( Options . SkipBundling . Short ) ;
if ( ! skipBundling )
{
await RunBundleForBlazorWasmTemplateAsync ( projectArgs ) ;
}
await ConfigurePwaSupportForAngular ( projectArgs ) ;
@ -140,6 +144,8 @@ public class NewCommand : ProjectCreationCommandBase, IConsoleCommand, ITransien
sb . AppendLine ( "--no-random-port (Use template's default ports)" ) ;
sb . AppendLine ( "--separate-auth-server (if supported by the template)" ) ;
sb . AppendLine ( "--local-framework-ref --abp-path <your-local-abp-repo-path> (keeps local references to projects instead of replacing with NuGet package references)" ) ;
sb . AppendLine ( "-sib|--skip-installing-libs (Doesn't run `abp install-libs` command after project creation)" ) ;
sb . AppendLine ( "-sb|--skip-bundling (Doesn't run `abp bundle` command after Blazor Wasm project creation)" ) ;
sb . AppendLine ( "" ) ;
sb . AppendLine ( "Examples:" ) ;
sb . AppendLine ( "" ) ;
@ -750,6 +750,12 @@ public abstract class ProjectCreationCommandBase
public const string Long = "skip-installing-libs" ;
}
public static class SkipBundling
{
public const string Short = "sb" ;
public const string Long = "skip-bundling" ;
}
public static class Tiered
{
public const string Long = "tiered" ;