neex 0.6.24 → 0.6.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,7 +93,7 @@ function addStartCommands(program) {
|
|
|
93
93
|
let startManager = null;
|
|
94
94
|
// Start command - run applications in production mode
|
|
95
95
|
program
|
|
96
|
-
.command('start <file>')
|
|
96
|
+
.command('start <file>') // Made file mandatory
|
|
97
97
|
.alias('s')
|
|
98
98
|
.description('Start JavaScript/TypeScript applications in production mode')
|
|
99
99
|
.option('-c, --no-color', 'Disable colored output')
|
|
@@ -118,6 +118,10 @@ function addStartCommands(program) {
|
|
|
118
118
|
.action(async (file, options) => {
|
|
119
119
|
try {
|
|
120
120
|
const showInfo = options.info || false;
|
|
121
|
+
if (showInfo) {
|
|
122
|
+
console.log(chalk_1.default.blue(`${figures_1.default.info} neex start: Starting production application server...`));
|
|
123
|
+
console.log(chalk_1.default.blue(`${figures_1.default.info} neex start: Target file: ${chalk_1.default.cyan(file)}`));
|
|
124
|
+
}
|
|
121
125
|
// Validate file parameter
|
|
122
126
|
if (!file || file.trim() === '') {
|
|
123
127
|
console.error(chalk_1.default.red(`${figures_1.default.cross} neex start: Error - No file specified!`));
|
|
@@ -125,11 +129,6 @@ function addStartCommands(program) {
|
|
|
125
129
|
console.error(chalk_1.default.yellow(`${figures_1.default.pointer} Example: neex start dist/server.js`));
|
|
126
130
|
process.exit(1);
|
|
127
131
|
}
|
|
128
|
-
// Show initial info (only if --info flag is set)
|
|
129
|
-
if (showInfo) {
|
|
130
|
-
console.log(chalk_1.default.blue(`${figures_1.default.info} neex start: Starting production application server...`));
|
|
131
|
-
console.log(chalk_1.default.blue(`${figures_1.default.info} neex start: Target file: ${chalk_1.default.cyan(file)}`));
|
|
132
|
-
}
|
|
133
132
|
// Get the start command configuration
|
|
134
133
|
let startConfig;
|
|
135
134
|
try {
|
|
@@ -190,10 +189,6 @@ function addStartCommands(program) {
|
|
|
190
189
|
console.log(chalk_1.default.blue(`${figures_1.default.info} neex start: Press Ctrl+C to stop the application server`));
|
|
191
190
|
console.log(chalk_1.default.gray(`${'='.repeat(60)}`));
|
|
192
191
|
}
|
|
193
|
-
else {
|
|
194
|
-
// Minimal output without --info flag (similar to neex dev)
|
|
195
|
-
console.log(chalk_1.default.green(`${figures_1.default.tick} neex start: Starting ${chalk_1.default.cyan(path.basename(file))} in ${chalk_1.default.cyan(options.env)} mode...`));
|
|
196
|
-
}
|
|
197
192
|
// Create StartManager instance
|
|
198
193
|
startManager = new start_manager_js_1.StartManager({
|
|
199
194
|
runnerName: 'neex start',
|