Package org.openrewrite.javascript.rpc
Class JavaScriptRewriteRpc.Builder
java.lang.Object
org.openrewrite.javascript.rpc.JavaScriptRewriteRpc.Builder
- All Implemented Interfaces:
Supplier<JavaScriptRewriteRpc>
- Enclosing class:
JavaScriptRewriteRpc
public static class JavaScriptRewriteRpc.Builder
extends Object
implements Supplier<JavaScriptRewriteRpc>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()inspectBrk(@Nullable Integer inspectBrk) Set the port for the Node.js inspector to listen on.marketplace(org.openrewrite.config.Environment marketplace) Path to the `npx` executable, not just the directory it is installed in.recipeInstallDir(@Nullable Path recipeInstallDir) verboseLogging(boolean verboseLogging) Enables info and debug level logging.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
marketplace
-
recipeInstallDir
-
npxPath
Path to the `npx` executable, not just the directory it is installed in.- Parameters:
npxPath- The path to the `npx` executable.- Returns:
- This builder
-
timeout
-
log
-
verboseLogging
Enables info and debug level logging.- Returns:
- This builder.
-
verboseLogging
-
inspectBrk
Set the port for the Node.js inspector to listen on. When this is set, you can use an "Attach to Node.js/Chrome" run configuration in IDEA to debug the JavaScript Rewrite RPC process. The Rewrite RPC process will block waiting for this connection.- Parameters:
inspectBrk- The port for the Node.js inspector to listen on.- Returns:
- This builder
-
inspectBrk
-
get
- Specified by:
getin interfaceSupplier<JavaScriptRewriteRpc>
-