Uses of Class
com.vaadin.flow.server.frontend.Options
Packages that use Options
-
Uses of Options in com.vaadin.flow.server.frontend
Fields in com.vaadin.flow.server.frontend declared as OptionsMethods in com.vaadin.flow.server.frontend that return OptionsModifier and TypeMethodDescriptionOptions.copyLocalResources
(File localResourcesFolder) Set local frontend files to be copied from given folder.Options.copyResources
(Set<File> jars) Sets whether copy resources from classpath to the appropriate npm package folder so as they are available for frontend build.Options.createMissingPackageJson
(boolean create) Sets whether to create the package file if missing.Options.enableImportsUpdate
(boolean enableImportsUpdate) Sets whether to enable imports file update.Options.enableNpmFileCleaning
(boolean forceClean) Deprecated.Options.enablePackagesUpdate
(boolean enablePackagesUpdate) Sets whether to enable packages and frontend file updates.Options.populateTokenFileData
(com.fasterxml.jackson.databind.JsonNode object) Fill token file data into the providedobject
.Options.setJavaResourceFolder
(File javaResourceFolder) Set the java resources folder to be checked for feature file.Options.setNodeAutoUpdate
(boolean update) Sets whether it is fine to automatically update the alternate node installation if installed version is older than the current default.Options.skipDevBundleBuild
(boolean skip) Set to true to skip dev bundle build in case a dev bundle exists.Options.useByteCodeScanner
(boolean byteCodeScanner) Sets frontend scanner strategy: byte code scanning strategy is used ifbyteCodeScanner
istrue
, full classpath scanner strategy is used otherwise (by default).Options.useGlobalPnpm
(boolean useGlobalPnpm) Uses globally installed pnpm tool for frontend packages installation.Options.withBuildDirectory
(String buildDirectory) Use the specified directory name (inside the project folder) for the build output.Options.withBuildResultFolders
(File webappResourcesDirectory, File resourceOutputDirectory) Sets the folders where frontend build results should be stored.Options.withBundleBuild
(boolean bundleBuild) Whether to run bundle build.Options.withCiBuild
(boolean ciBuild) Enables ci build.Options.withCleanOldGeneratedFiles
(boolean clean) Sets whether generated files from a previous execution that are no more created should be removed.Options.withCompressBundle
(boolean compressBundle) Set tofalse
to skip frontend bundle compression.Options.withCopyTemplates
(boolean copyTemplates) Sets whether copy templates toMETA-INF/VAADIN/config/templates
.Options.withEmbeddableWebComponents
(boolean generateEmbeddableWebComponents) Sets whether to collect and packageWebComponentExporter
dependencies.Options.withEnableBun
(boolean enable) Enables bun tool.Options.withEnablePnpm
(boolean enable) Enables pnpm tool.Options.withFeatureFlags
(FeatureFlags featureFlags) Options.withForceProductionBuild
(boolean forceProductionBuild) Setting this totrue
will force a build of the production build even if there is a default production bundle that could be used.Options.withFrontendDirectory
(File frontendDirectory) Sets the directory containing the project's frontend filesOptions.withFrontendExtraFileExtensions
(List<String> frontendExtraFileExtensions) Sets the extra file extensions used in the project.Options.withFrontendGeneratedFolder
(File frontendGeneratedFolder) Set the folder where frontend files should be generated.Options.withFrontendHotdeploy
(boolean frontendHotdeploy) Whether to run with a dev server (when not in production mode).Options.withHomeNodeExecRequired
(boolean requireHomeNodeExec) Requires node executable to be installed in vaadin home folder.Options.withJarFrontendResourcesFolder
(File jarFrontendResourcesFolder) Sets the appropriate npm package folder for copying flow resources in jars.Options.withNodeDownloadRoot
(URI nodeDownloadRoot) Sets the download node.js URL.Options.withNodeVersion
(String nodeVersion) Sets the node.js version to be used when node.js is installed automatically by Vaadin, for example"v16.0.0"
.Options.withNpmExcludeWebComponents
(boolean exclude) Sets whether to exclude web component npm packages in packages.json.Options.withPostinstallPackages
(List<String> postinstallPackages) Sets the additional npm packages to runpostinstall
for.Options.withProductionMode
(boolean productionMode) Sets the production mode.Options.withReact
(boolean reactEnable) Options.withRunNpmInstall
(boolean runNpmInstall) Sets whether runnpm install
after updating dependencies.Options.withTokenFile
(File tokenFile) Sets the token file (flow-build-info.json) path.Options.withWebpack
(File webappResourcesDirectory, File resourceOutputDirectory) Deprecated, for removal: This API element is subject to removal in a future version.Methods in com.vaadin.flow.server.frontend with parameters of type OptionsModifier and TypeMethodDescriptionstatic void
BundleUtils.copyPackageLockFromBundle
(Options options) Copy package-lock.json/.yaml file from existing dev-bundle for building new bundle.EndpointGeneratorTaskFactory.createTaskGenerateEndpoint
(Options options) Create a task for generating TS files based.EndpointGeneratorTaskFactory.createTaskGenerateOpenAPI
(Options options) Create a task for generating OpenAPI spec.static boolean
BundleValidationUtil.frontendImportsFound
(com.fasterxml.jackson.databind.JsonNode statsJson, Options options, FrontendDependenciesScanner frontendDependencies) static com.fasterxml.jackson.databind.JsonNode
BundleValidationUtil.getDefaultPackageJson
(Options options, FrontendDependenciesScanner frontendDependencies, com.fasterxml.jackson.databind.node.ObjectNode packageJson) static com.fasterxml.jackson.databind.JsonNode
BundleValidationUtil.getPackageJson
(Options options, FrontendDependenciesScanner frontendDependencies) Get the package.json file from disk if available else generate in memory.static boolean
FrontendUtils.isReactModuleAvailable
(Options options) Is the React module available in the classpath.default void
TypeScriptBootstrapModifier.modify
(List<String> bootstrapTypeScript, Options options, FrontendDependenciesScanner frontendDependenciesScanner) Modifies the bootstrap typescript by mutating the parameter.static boolean
BundleValidationUtil.needsBuild
(Options options, FrontendDependenciesScanner frontendDependencies, Mode mode) Checks if an application needs a new frontend bundle.static boolean
ThemeValidationUtil.themeConfigurationChanged
(Options options, com.fasterxml.jackson.databind.JsonNode statsJson, FrontendDependenciesScanner frontendDependencies) static boolean
ThemeValidationUtil.themeShadowDOMStylesheetsChanged
(Options options, com.fasterxml.jackson.databind.JsonNode statsJson, FrontendDependenciesScanner frontendDependencies) Checks if theme has legacy Shadow DOM stylesheets in <theme>/components folder and if their content has changed.static void
TaskGenerateReactFiles.writeLayouts
(Options options, Collection<Class<?>> layoutsClasses) Writes the `layout.json` file in the frontend generated folder.Constructors in com.vaadin.flow.server.frontend with parameters of type OptionsModifierConstructorDescriptionGenerateMainImports
(FrontendDependenciesScanner frontendDepScanner, Options options, com.fasterxml.jackson.databind.JsonNode statsJson) Initialize tasks with the given options.protected
NodeUpdater
(FrontendDependenciesScanner frontendDependencies, Options options) Constructor.TaskGeneratePWAIcons
(Options options, PwaConfiguration pwaConfiguration) TaskInstallFrontendBuildPlugins
(Options options) Copy Flow webpack plugins intoPLUGIN_TARGET
under the build directory.TaskPrepareProdBundle
(Options options) -
Uses of Options in com.vaadin.flow.server.frontend.scanner
Methods in com.vaadin.flow.server.frontend.scanner with parameters of type OptionsModifier and TypeMethodDescriptionFrontendDependenciesScanner.FrontendDependenciesScannerFactory.createScanner
(Options options)
withBuildResultFolders(File, File)
instead.