@Mojo(name="build-frontend",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=PREPARE_PACKAGE)
public class BuildFrontendMojo
extends FlowModeAbstractMojo
implements PluginAdapterBuild
Constants.PACKAGE_JSON file with the NpmPackage
annotations defined in the classpath,npm installFrontendUtils.IMPORTS_NAME file imports with the
JsModule Theme and JavaScript annotations defined in
the classpath,FrontendUtils.WEBPACK_CONFIG file.INCLUDE_FROM_COMPILE_DEPS_REGEX| Constructor and Description |
|---|
BuildFrontendMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
File |
frontendResourcesDirectory() |
boolean |
generateBundle() |
boolean |
generateEmbeddableWebComponents() |
boolean |
optimizeBundle() |
boolean |
runNpmInstall() |
String |
webpackGeneratedTemplate() |
String |
webpackTemplate() |
applicationProperties, buildFolder, eagerServerLoad, frontendDirectory, generatedFolder, generatedTsFolder, getClassFinder, getClasspathElements, getJarFiles, getUseDeprecatedV14Bootstrapping, isDebugEnabled, isJarProject, javaResourceFolder, javaSourceFolder, logDebug, logError, logInfo, logWarn, logWarn, nodeAutoUpdate, nodeDownloadRoot, nodeVersion, npmFolder, openApiJsonFile, pnpmEnable, productionMode, projectBaseDirectory, requireHomeNodeExec, servletResourceOutputDirectory, useGlobalPnpm, webpackOutputDirectorygetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationProperties, buildFolder, createLookup, eagerServerLoad, frontendDirectory, generatedFolder, generatedTsFolder, getClassFinder, getJarFiles, getUseDeprecatedV14Bootstrapping, isDebugEnabled, isJarProject, isUseDeprecatedV14Bootstrapping, javaResourceFolder, javaSourceFolder, logDebug, logError, logInfo, logWarn, logWarn, nodeAutoUpdate, nodeDownloadRoot, nodeVersion, npmFolder, openApiJsonFile, pnpmEnable, productionMode, projectBaseDirectory, requireHomeNodeExec, servletResourceOutputDirectory, useGlobalPnpm, webpackOutputDirectorypublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic File frontendResourcesDirectory()
frontendResourcesDirectory in interface PluginAdapterBuildpublic boolean generateBundle()
generateBundle in interface PluginAdapterBuildpublic boolean generateEmbeddableWebComponents()
generateEmbeddableWebComponents in interface PluginAdapterBuildpublic boolean optimizeBundle()
optimizeBundle in interface PluginAdapterBuildpublic boolean runNpmInstall()
runNpmInstall in interface PluginAdapterBuildpublic String webpackGeneratedTemplate()
webpackGeneratedTemplate in interface PluginAdapterBuildpublic String webpackTemplate()
webpackTemplate in interface PluginAdapterBuildCopyright © 2000–2022 Vaadin Ltd. All rights reserved.