Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yesamer committed Dec 16, 2024
1 parent 6f2a072 commit 3d83bf8
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions packages/extended-services-vscode-extension/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,11 @@
* under the License.
*/

const { getOrDefault, varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");
const { composeEnv, varsWithName } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({
EXTENDED_SERVICES_JAVA__host: {
default: "0.0.0.0",
description:
"Quarkus HTTP Host. Configures the IP address or host to which a Quarkus application binds for incoming HTTP requests.",
},
EXTENDED_SERVICES_JAVA__port: {
default: "21345",
description:
"Quarkus HTTP Port. Configures the network port on which a Quarkus application accepts incoming HTTP requests.",
},
}),
module.exports = composeEnv([require("@kie-tools/root-env/env"), require("@kie-tools/extended-services-java/env")], {
vars: varsWithName({}),
get env() {
return {
extendedServicesJava: {
version: require("../package.json").version,
host: getOrDefault(this.vars.EXTENDED_SERVICES_JAVA__host),
port: getOrDefault(this.vars.EXTENDED_SERVICES_JAVA__port),
},
};
return {};
},
});

0 comments on commit 3d83bf8

Please sign in to comment.