Interface PluginAdapterBuild

All Superinterfaces:
PluginAdapterBase

public interface PluginAdapterBuild extends PluginAdapterBase
Gives access to plugin-specific implementations and configurations.
  • Method Details

    • frontendResourcesDirectory

      File frontendResourcesDirectory()
      Defines the project frontend directory from where resources should be copied from for use with webpack.
      Returns:
      File
    • generateBundle

      boolean generateBundle()
      Whether to generate a bundle from the project frontend sources or not.
      Returns:
      boolean
    • generateEmbeddableWebComponents

      boolean generateEmbeddableWebComponents()
      Whether to generate embeddable web components from WebComponentExporter inheritors.
      Returns:
      boolean
    • optimizeBundle

      boolean optimizeBundle()
      Whether to use byte code scanner strategy to discover frontend components.
      Returns:
      boolean
    • runNpmInstall

      boolean runNpmInstall()
      Whether to run npm install after updating dependencies.
      Returns:
      boolean
    • ciBuild

      boolean ciBuild()
      Setting this to true will run npm ci instead of npm install when using npm. If using pnpm, the installation will be run with --frozen-lockfile parameter. This makes sure that the package lock file will not be overwritten.
      Returns:
      true if ci build should be enabled
    • forceProductionBuild

      boolean forceProductionBuild()
      Setting this to true will force a build of the production build even if there is a default production bundle that could be used. Created production bundle optimization is defined by optimizeBundle() parameter.