Maintain/Run/Constant.rs
1//=============================================================================//
2// File Path: Element/Maintain/Source/Run/Constant.rs
3//=============================================================================//
4// Module: Constant
5//
6// Brief Description: Run module constants and configuration values.
7//
8// RESPONSIBILITIES:
9// ================
10//
11// Primary:
12// - Provide file path constants for run operations
13// - Provide delimiter constants
14// - Provide environment variable name constants
15// - Serve as single source of truth for run-related constant values
16//
17// Secondary:
18// - Ensure consistent naming across the run module
19//
20// ARCHITECTURAL ROLE:
21// ===================
22//
23// Position:
24// - Infrastructure/Configuration layer
25// - Constant definitions
26//
27// Dependencies (What this module requires):
28// - External crates: None
29// - Internal modules: None
30// - Traits implemented: None
31//
32// Dependents (What depends on this module):
33// - Run orchestration functions
34// - Argument parsing module
35// - Profile resolution logic
36//
37//=============================================================================//
38// IMPLEMENTATION
39//=============================================================================//
40
41// File path constants
42pub const ConfigFile:&str = ".vscode/land-config.json";
43pub const LogFile:&str = "Target/run.log";
44
45// Default values
46pub const DirectoryDefault:&str = ".";
47pub const ProfileDefault:&str = "debug";
48
49// Delimiter constants
50pub const WorkbenchDelimiter:&str = "-";
51
52// Environment variable constants
53pub const DebugEnv:&str = "Debug";
54pub const LevelEnv:&str = "Level";
55pub const NodeEnv:&str = "NODE_ENV";
56pub const NodeVersionEnv:&str = "NODE_VERSION";
57pub const WorkbenchEnv:&str = "Workbench";
58pub const BrowserEnv:&str = "Browser";
59pub const WindEnv:&str = "Wind";
60pub const MountainEnv:&str = "Mountain";
61pub const ElectronEnv:&str = "Electron";
62pub const BundleEnv:&str = "Bundle";
63pub const CleanEnv:&str = "Clean";
64pub const CompileEnv:&str = "Compile";
65pub const DependencyEnv:&str = "Dependency";
66pub const DirEnv:&str = "RUN_DIR";
67pub const LogEnv:&str = "RUST_LOG";
68pub const ProfileEnv:&str = "RUN_PROFILE";
69
70// Run-specific constants
71pub const HotReloadEnv:&str = "HOT_RELOAD";
72pub const WatchEnv:&str = "WATCH";
73pub const LiveReloadPortEnv:&str = "LIVE_RELOAD_PORT";
74
75// Default ports
76pub const DefaultLiveReloadPort:u16 = 3001;
77pub const DefaultDevServerPort:u16 = 3000;