- Deleted legacy config reference handling functions and related migration scripts to simplify the codebase. - Updated documentation to reflect the removal of legacy YAML paths and configurations. - Adjusted existing YAML management processes to ensure compatibility with the new mustache-style syntax. - Removed tests related to legacy config references, focusing on current functionality and ensuring clarity in the testing suite.
26 lines
1.0 KiB
JavaScript
26 lines
1.0 KiB
JavaScript
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
export const SERVER_ROOT = path.dirname(fileURLToPath(import.meta.url));
|
|
export const SCRIPTS_DIR = path.join(SERVER_ROOT, "scripts");
|
|
export const DATA_DIR = path.join(SERVER_ROOT, "data");
|
|
/** Live instance workflows (not shipped in git). Override for tests. */
|
|
export const WORKFLOWS_DIR =
|
|
process.env.JFLOW_WORKFLOWS_DIR ?? path.join(DATA_DIR, "workflows");
|
|
/** User plugins (repo-root /plugins, outside the pnpm workspace). */
|
|
export const PLUGINS_DIR =
|
|
process.env.JFLOW_PLUGINS_DIR ??
|
|
path.resolve(SERVER_ROOT, "../../plugins");
|
|
/** Example plugin sources shipped with the repo. */
|
|
export const EXAMPLE_PLUGINS_DIR = path.resolve(
|
|
SERVER_ROOT,
|
|
"../../examples/plugins",
|
|
);
|
|
/** Example workflow YAML presets (not loaded by the runner). */
|
|
export const EXAMPLE_WORKFLOWS_DIR = path.resolve(
|
|
SERVER_ROOT,
|
|
"../../examples/workflows",
|
|
);
|
|
export const LOGS_DIR = path.join(SERVER_ROOT, "logs");
|
|
export const WEB_DIST = path.resolve(SERVER_ROOT, "../web/dist");
|