initial commit

This commit is contained in:
Tevon Strand-Brown
2024-12-11 22:31:43 -08:00
parent 140576a9a5
commit 56c34635be
8 changed files with 3733 additions and 0 deletions

27
src/hass/index.ts Normal file
View File

@@ -0,0 +1,27 @@
import { CreateApplication, TServiceParams, StringConfig } from "@digital-alchemy/core";
type Environments = "development" | "production" | "test";
import { LIB_HASS } from "@digital-alchemy/hass";
// application
const MY_APP = CreateApplication({
configuration: {
NODE_ENV: {
type: "string",
default: "development",
enum: ["development", "production", "test"],
description: "Code runner addon can set with it's own NODE_ENV",
} satisfies StringConfig<Environments>,
},
services: {},
libraries: [LIB_HASS],
name: 'boilerplate'
});
const hass = await MY_APP.bootstrap()
export async function get_hass() {
return hass;
}