Skip to main content

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";
43
44pub const LogFile:&str = "Target/run.log";
45
46// Default values
47pub const DirectoryDefault:&str = ".";
48
49pub const ProfileDefault:&str = "debug";
50
51// Delimiter constants
52pub const WorkbenchDelimiter:&str = "-";
53
54// Environment variable constants
55pub const DebugEnv:&str = "Debug";
56
57pub const LevelEnv:&str = "Level";
58
59pub const NodeEnv:&str = "NODE_ENV";
60
61pub const NodeVersionEnv:&str = "NODE_VERSION";
62
63pub const WorkbenchEnv:&str = "Workbench";
64
65pub const BrowserEnv:&str = "Browser";
66
67pub const WindEnv:&str = "Wind";
68
69pub const MountainEnv:&str = "Mountain";
70
71pub const ElectronEnv:&str = "Electron";
72
73pub const BundleEnv:&str = "Bundle";
74
75pub const CleanEnv:&str = "Clean";
76
77pub const CompileEnv:&str = "Compile";
78
79pub const DependencyEnv:&str = "Dependency";
80
81pub const DirEnv:&str = "RUN_DIR";
82
83pub const LogEnv:&str = "RUST_LOG";
84
85pub const ProfileEnv:&str = "RUN_PROFILE";
86
87// Run-specific constants
88pub const HotReloadEnv:&str = "HOT_RELOAD";
89
90pub const WatchEnv:&str = "WATCH";
91
92pub const LiveReloadPortEnv:&str = "LIVE_RELOAD_PORT";
93
94// Default ports
95pub const DefaultLiveReloadPort:u16 = 3001;
96
97pub const DefaultDevServerPort:u16 = 3000;