Package com.vaadin.flow.plugin.maven
Class CleanFrontendMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
-
- com.vaadin.flow.plugin.maven.CleanFrontendMojo
-
- All Implemented Interfaces:
PluginAdapterBase,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
FrontendDanceMojo
@Mojo(name="clean-frontend", defaultPhase=PRE_CLEAN) public class CleanFrontendMojo extends FlowModeAbstractMojoGoal that cleans the frontend files to a clean state.Deletes Vaadin dependencies from package.json, the generated frontend folder and the npm/pnpm-related files and folders:
- node_modules
- pnpm-lock.yaml
- package-lock.json
- Since:
- 9.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEPENDENCIESstatic StringDEV_DEPENDENCIESstatic StringOVERRIDESstatic StringVAADIN-
Fields inherited from class com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
INCLUDE_FROM_COMPILE_DEPS_REGEX
-
-
Constructor Summary
Constructors Constructor Description CleanFrontendMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
Methods inherited from class com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
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, postinstallPackages, productionMode, projectBaseDirectory, requireHomeNodeExec, servletResourceOutputDirectory, useGlobalPnpm, webpackOutputDirectory
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.plugin.base.PluginAdapterBase
createLookup, isUseDeprecatedV14Bootstrapping
-
-
-
-
Field Detail
-
VAADIN
public static final String VAADIN
- See Also:
- Constant Field Values
-
DEPENDENCIES
public static final String DEPENDENCIES
- See Also:
- Constant Field Values
-
DEV_DEPENDENCIES
public static final String DEV_DEPENDENCIES
- See Also:
- Constant Field Values
-
OVERRIDES
public static final String OVERRIDES
- See Also:
- Constant Field Values
-
-