diff --git a/cmd/project/project_storefront_build.go b/cmd/project/project_storefront_build.go index 8c794c4b..795f810d 100644 --- a/cmd/project/project_storefront_build.go +++ b/cmd/project/project_storefront_build.go @@ -39,10 +39,16 @@ var projectStorefrontBuildCmd = &cobra.Command{ return err } + skipThemeCompile, _ := cmd.PersistentFlags().GetBool("skip-theme-compile") + if skipThemeCompile { + return nil + } + return runTransparentCommand(commandWithRoot(exec.CommandContext(cmd.Context(), "php", "bin/console", "theme:compile"), projectRoot)) }, } func init() { projectRootCmd.AddCommand(projectStorefrontBuildCmd) + projectStorefrontBuildCmd.PersistentFlags().Bool("skip-theme-compile", false, "Skip theme compilation") } diff --git a/wiki/docs/commands/project.md b/wiki/docs/commands/project.md index 2758e532..ff761690 100644 --- a/wiki/docs/commands/project.md +++ b/wiki/docs/commands/project.md @@ -20,6 +20,10 @@ Builds the Administration with all installed extensions Builds the Storefront with all installed extensions +Parameters: + +* `skip-theme-compile` - Skips the theme compilation + ## shopware-cli project worker Starts the Shopware worker in background and tails the log