Skip to main content

XpmPackage.hasXpmActions() method

Determines whether the package defines any xpm actions.

Signature

hasXpmActions(): boolean;

Returns

boolean

true if actions are defined directly or within build configurations, false otherwise.

Remarks

This method performs a comprehensive search for action definitions at both the package level and within build configurations, including template-based configurations.

Action detection strategy:

  1. Check for package-level actions in xpack.actions.
  2. If no package-level actions, iterate through all build configurations.
  3. For each configuration, determine if it's a template (name contains Liquid syntax) or a regular configuration.
  4. For templates: Check template.actions for action definitions.
  5. For regular configurations: Check actions directly.
  6. Return true if any actions are found at any level.

This comprehensive check is useful for determining whether xpm action commands should be available or whether the package requires xpm for build automation.


Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.