Interface QuinoaConfig
-
- All Known Implementing Classes:
QuinoaConfigDelegate
@ConfigMapping(prefix="quarkus.quinoa") @ConfigRoot(phase=BUILD_TIME) public interface QuinoaConfig
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_BUILD_DIRstatic StringDEFAULT_INDEX_PAGEstatic StringDEFAULT_WEB_UI_DIR
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>buildDir()This the Web UI internal build system (webpack, ...) output directory.Optional<Boolean>ci()Install the packages without generating a lockfile (frozen lockfile) and failing if an update is needed (useful in CI).DevServerConfigdevServer()Configuration for the external dev server (live coding server)Optional<Boolean>enabled()Indicate if the extension should be enabled.booleanenableSPARouting()Enable SPA (Single Page Application) routing, all relevant requests will be re-routed to the index page.booleanforceInstall()Force install packages before building.FrameworkConfigframework()Configure framework detectionstatic List<String>getNormalizedIgnoredPathPrefixes(QuinoaConfig config)Optional<List<String>>ignoredPathPrefixes()List of path prefixes to be ignored by Quinoa.StringindexPage()Name of the index page.static booleanisDevServerMode(QuinoaConfig config)static booleanisEnabled(QuinoaConfig config)booleanjustBuild()Indicate if Quinoa should just do the build part.Optional<String>packageManager()Name of the package manager binary.PackageManagerCommandConfigpackageManagerCommand()Configuration for overriding build commandsPackageManagerInstallConfigpackageManagerInstall()Configuration for installing the package managerbooleanrunTests()Indicate if the Web UI should also be tested during the build phase (i.e: npm test).static QuinoaHandlerConfigtoHandlerConfig(QuinoaConfig config, boolean prodMode, io.quarkus.vertx.http.runtime.HttpBuildTimeConfig httpBuildTimeConfig)StringuiDir()Path to the Web UI (NodeJS) root directory (relative to the project root).
-
-
-
Field Detail
-
DEFAULT_BUILD_DIR
static final String DEFAULT_BUILD_DIR
- See Also:
- Constant Field Values
-
DEFAULT_WEB_UI_DIR
static final String DEFAULT_WEB_UI_DIR
- See Also:
- Constant Field Values
-
DEFAULT_INDEX_PAGE
static final String DEFAULT_INDEX_PAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
enabled
@WithParentName @ConfigDocDefault("enabled (disabled in test mode)") Optional<Boolean> enabled()Indicate if the extension should be enabled.
-
justBuild
@WithDefault("false") boolean justBuild()Indicate if Quinoa should just do the build part. If true, Quinoa will NOT serve the Web UI built resources. This is handy when the output of the build is used to be served via something else (nginx, cdn, ...) Quinoa put the built files in 'target/quinoa/build' (or 'build/quinoa/build with Gradle).
-
uiDir
@WithDefault("src/main/webui") String uiDir()Path to the Web UI (NodeJS) root directory (relative to the project root).
-
buildDir
@ConfigDocDefault("framework detection with fallback to \'build/\'") Optional<String> buildDir()This the Web UI internal build system (webpack, ...) output directory. After the build, Quinoa will take the files from this directory, move them to 'target/quinoa/build' (or build/quinoa/build with Gradle) and serve them at runtime. The path is relative to the Web UI path.
-
packageManager
@ConfigDocDefault("auto-detected based on lockfile falling back to \'npm\'") Optional<String> packageManager()Name of the package manager binary. Only npm, pnpm and yarn are supported for the moment.
-
packageManagerInstall
PackageManagerInstallConfig packageManagerInstall()
Configuration for installing the package manager
-
packageManagerCommand
PackageManagerCommandConfig packageManagerCommand()
Configuration for overriding build commands
-
indexPage
@WithDefault("index.html") String indexPage()Name of the index page.
-
runTests
@WithDefault("false") boolean runTests()Indicate if the Web UI should also be tested during the build phase (i.e: npm test). To be used in aio.quarkus.test.junit.QuarkusTestProfileto have Web UI test running during aio.quarkus.test.junit.QuarkusTest
-
ci
@ConfigDocDefault("true if environment CI=true") Optional<Boolean> ci()Install the packages without generating a lockfile (frozen lockfile) and failing if an update is needed (useful in CI).
-
forceInstall
@WithDefault("false") boolean forceInstall()Force install packages before building. It will install packages only if the node_modules directory is absent or when the package.json is modified in dev-mode.
-
framework
FrameworkConfig framework()
Configure framework detection
-
enableSPARouting
@WithDefault("false") @WithName("enable-spa-routing") boolean enableSPARouting()Enable SPA (Single Page Application) routing, all relevant requests will be re-routed to the index page. Currently, for technical reasons, the Quinoa SPA routing configuration won't work with RESTEasy Classic.
-
ignoredPathPrefixes
@ConfigDocDefault("ignore values configured by \'quarkus.resteasy-reactive.path\', \'quarkus.resteasy.path\' and \'quarkus.http.non-application-root-path\'") Optional<List<String>> ignoredPathPrefixes()List of path prefixes to be ignored by Quinoa.
-
devServer
DevServerConfig devServer()
Configuration for the external dev server (live coding server)
-
getNormalizedIgnoredPathPrefixes
static List<String> getNormalizedIgnoredPathPrefixes(QuinoaConfig config)
-
toHandlerConfig
static QuinoaHandlerConfig toHandlerConfig(QuinoaConfig config, boolean prodMode, io.quarkus.vertx.http.runtime.HttpBuildTimeConfig httpBuildTimeConfig)
-
isDevServerMode
static boolean isDevServerMode(QuinoaConfig config)
-
isEnabled
static boolean isEnabled(QuinoaConfig config)
-
-