Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add parameter to skip assets install after admin build #263

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/project/project_admin_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ var projectAdminBuildCmd = &cobra.Command{
return err
}

skipAssetsInstall, _ := cmd.PersistentFlags().GetBool("skip-assets-install")
if skipAssetsInstall {
return nil
}

return runTransparentCommand(commandWithRoot(exec.CommandContext(cmd.Context(), "php", "bin/console", "assets:install"), projectRoot))
},
}

func init() {
projectRootCmd.AddCommand(projectAdminBuildCmd)
projectAdminBuildCmd.PersistentFlags().Bool("skip-assets-install", false, "Skips the assets installation")
}
4 changes: 4 additions & 0 deletions wiki/docs/commands/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Arguments:

Builds the Administration with all installed extensions

Parameters:

* `--skip-assets-install` - Skips the assets installation

## shopware-cli project storefront-build

Builds the Storefront with all installed extensions
Expand Down
Loading