Enum FrameworkType
- java.lang.Object
-
- java.lang.Enum<FrameworkType>
-
- io.quarkiverse.quinoa.deployment.packagemanager.FrameworkType
-
- All Implemented Interfaces:
Serializable,Comparable<FrameworkType>
public enum FrameworkType extends Enum<FrameworkType>
Configuration defaults for multiple JS frameworks that can be used to allow for easier adoption with less user configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>DEV_SCRIPTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetectedFrameworkdetectFramework(io.quarkus.deployment.builditem.LaunchModeBuildItem launchMode, QuinoaConfig config, Path packageJsonFile)StringgetBuildDirectory()StringgetDevScript()intgetDevServerPort()Set<String>getPackageScripts()static booleanshouldScanPath(Path filePath)Check whether this path should be scanned for changes by comparing against known directories that should be ignored.static FrameworkTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FrameworkType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REACT
public static final FrameworkType REACT
-
VUE_LEGACY
public static final FrameworkType VUE_LEGACY
-
VITE
public static final FrameworkType VITE
-
SOLID_START
public static final FrameworkType SOLID_START
-
ASTRO
public static final FrameworkType ASTRO
-
NEXT
public static final FrameworkType NEXT
-
NUXT
public static final FrameworkType NUXT
-
ANGULAR
public static final FrameworkType ANGULAR
-
EMBER
public static final FrameworkType EMBER
-
AURELIA
public static final FrameworkType AURELIA
-
POLYMER
public static final FrameworkType POLYMER
-
QWIK
public static final FrameworkType QWIK
-
GATSBY
public static final FrameworkType GATSBY
-
CYCLEJS
public static final FrameworkType CYCLEJS
-
RIOTJS
public static final FrameworkType RIOTJS
-
MIDWAYJS
public static final FrameworkType MIDWAYJS
-
REFINE
public static final FrameworkType REFINE
-
WEB_COMPONENTS
public static final FrameworkType WEB_COMPONENTS
-
-
Method Detail
-
values
public static FrameworkType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FrameworkType c : FrameworkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FrameworkType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
detectFramework
public static DetectedFramework detectFramework(io.quarkus.deployment.builditem.LaunchModeBuildItem launchMode, QuinoaConfig config, Path packageJsonFile)
-
shouldScanPath
public static boolean shouldScanPath(Path filePath)
Check whether this path should be scanned for changes by comparing against known directories that should be ignored. Ignored directories include any that start with DOT "." like ".next" or ".svelte", also "node_modules" and any of the framework build directories.- Parameters:
filePath- the file path to check- Returns:
- true if it is a directory that should be scanned for changes, false if it should be ignored
-
getBuildDirectory
public String getBuildDirectory()
-
getDevScript
public String getDevScript()
-
getDevServerPort
public int getDevServerPort()
-
-