com.vaadin.flow.server.frontend.scanner.

Interface FrontendDependenciesScanner

All Superinterfaces:

Serializable

All Known Implementing Classes:

FrontendDependencies

public interface FrontendDependenciesScanner extends Serializable

Frontend dependencies scanner.

For internal use only. May be renamed or removed in a future release.

Since:

Author:

Vaadin Ltd

  • Method Details

    • getPackages

      Map<String,String> getPackages()

      Get all npm packages the application depends on.

      Returns:

      the npm packages

    • getDevPackages

      Map<String,String> getDevPackages()

      Get all npm packages needed only for development.

      Returns:

      the `devDependencies` packages

    • getModules

      Map<ChunkInfo,List<String>> getModules()

      Get all ES6 modules needed for run the application. Modules that are theme dependencies are guaranteed to precede other modules in the result.

      Returns:

      the JS modules

    • getModulesDevelopment

      Map<ChunkInfo,List<String>> getModulesDevelopment()

      Get all ES6 modules needed only in development mode. Modules that are theme dependencies are guaranteed to precede other modules in the result.

      Returns:

      the JS modules

    • getScripts

      Map<ChunkInfo,List<String>> getScripts()

      Get all the JS files used by the application.

      Returns:

      the JS files

    • getScriptsDevelopment

      Map<ChunkInfo,List<String>> getScriptsDevelopment()

      Get all the JS files needed only in development mode.

      Returns:

      the JS files

    • getCss

      Get all the CSS files used by the application.

      Returns:

      the CSS files

    • getThemeDefinition

      ThemeDefinition getThemeDefinition()

      Get the ThemeDefinition of the application.

      Returns:

      the theme definition

    • getTheme

      AbstractTheme getTheme()

      Get the AbstractTheme instance used in the application.

      Returns:

      the theme instance

    • getClasses

      Set<String> getClasses()

      Get all Java classes considered when looking for used dependencies.

      Returns:

      the set of JS files

    • getPwaConfiguration

      PwaConfiguration getPwaConfiguration()

      Get the PwaConfiguration of the application.

      Returns:

      the PWA configuration