Class QuinoaConfigDelegate
- java.lang.Object
-
- io.quarkiverse.quinoa.deployment.config.delegate.QuinoaConfigDelegate
-
- All Implemented Interfaces:
QuinoaConfig
public class QuinoaConfigDelegate extends Object implements QuinoaConfig
-
-
Field Summary
-
Fields inherited from interface io.quarkiverse.quinoa.deployment.config.QuinoaConfig
DEFAULT_BUILD_DIR, DEFAULT_INDEX_PAGE, DEFAULT_WEB_UI_DIR
-
-
Constructor Summary
Constructors Constructor Description QuinoaConfigDelegate(QuinoaConfig delegate)
-
Method Summary
All Methods Instance Methods Concrete 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 detectionOptional<List<String>>ignoredPathPrefixes()List of path prefixes to be ignored by Quinoa.StringindexPage()Name of the index page.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).StringuiDir()Path to the Web UI (NodeJS) root directory (relative to the project root).
-
-
-
Constructor Detail
-
QuinoaConfigDelegate
public QuinoaConfigDelegate(QuinoaConfig delegate)
-
-
Method Detail
-
enabled
public Optional<Boolean> enabled()
Description copied from interface:QuinoaConfigIndicate if the extension should be enabled.- Specified by:
enabledin interfaceQuinoaConfig
-
justBuild
public boolean justBuild()
Description copied from interface:QuinoaConfigIndicate 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).- Specified by:
justBuildin interfaceQuinoaConfig
-
uiDir
public String uiDir()
Description copied from interface:QuinoaConfigPath to the Web UI (NodeJS) root directory (relative to the project root).- Specified by:
uiDirin interfaceQuinoaConfig
-
buildDir
public Optional<String> buildDir()
Description copied from interface:QuinoaConfigThis 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.- Specified by:
buildDirin interfaceQuinoaConfig
-
packageManager
public Optional<String> packageManager()
Description copied from interface:QuinoaConfigName of the package manager binary. Only npm, pnpm and yarn are supported for the moment.- Specified by:
packageManagerin interfaceQuinoaConfig
-
packageManagerInstall
public PackageManagerInstallConfig packageManagerInstall()
Description copied from interface:QuinoaConfigConfiguration for installing the package manager- Specified by:
packageManagerInstallin interfaceQuinoaConfig
-
packageManagerCommand
public PackageManagerCommandConfig packageManagerCommand()
Description copied from interface:QuinoaConfigConfiguration for overriding build commands- Specified by:
packageManagerCommandin interfaceQuinoaConfig
-
indexPage
public String indexPage()
Description copied from interface:QuinoaConfigName of the index page.- Specified by:
indexPagein interfaceQuinoaConfig
-
runTests
public boolean runTests()
Description copied from interface:QuinoaConfigIndicate 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- Specified by:
runTestsin interfaceQuinoaConfig
-
ci
public Optional<Boolean> ci()
Description copied from interface:QuinoaConfigInstall the packages without generating a lockfile (frozen lockfile) and failing if an update is needed (useful in CI).- Specified by:
ciin interfaceQuinoaConfig
-
forceInstall
public boolean forceInstall()
Description copied from interface:QuinoaConfigForce 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.- Specified by:
forceInstallin interfaceQuinoaConfig
-
framework
public FrameworkConfig framework()
Description copied from interface:QuinoaConfigConfigure framework detection- Specified by:
frameworkin interfaceQuinoaConfig
-
enableSPARouting
public boolean enableSPARouting()
Description copied from interface:QuinoaConfigEnable 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.- Specified by:
enableSPARoutingin interfaceQuinoaConfig
-
ignoredPathPrefixes
public Optional<List<String>> ignoredPathPrefixes()
Description copied from interface:QuinoaConfigList of path prefixes to be ignored by Quinoa.- Specified by:
ignoredPathPrefixesin interfaceQuinoaConfig
-
devServer
public DevServerConfig devServer()
Description copied from interface:QuinoaConfigConfiguration for the external dev server (live coding server)- Specified by:
devServerin interfaceQuinoaConfig
-
-