neex 0.6.42 → 0.6.43
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.
|
@@ -199,9 +199,7 @@ function addDevCommands(program) {
|
|
|
199
199
|
getDevRunner: () => devRunner,
|
|
200
200
|
cleanupDev: () => {
|
|
201
201
|
if (devRunner && devRunner.isActive()) {
|
|
202
|
-
console.log(chalk_1.default.blue(`${figures_1.default.info} neex dev: Stopping development server...`));
|
|
203
202
|
devRunner.stop();
|
|
204
|
-
console.log(chalk_1.default.green(`${figures_1.default.tick} neex dev: Development server stopped successfully`));
|
|
205
203
|
}
|
|
206
204
|
}
|
|
207
205
|
};
|
package/dist/src/dev-runner.js
CHANGED
|
@@ -195,9 +195,6 @@ class DevRunner {
|
|
|
195
195
|
if (!this.isRunning) {
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
if (this.options.showInfo) {
|
|
199
|
-
logger_1.default.printLine(`${prefix} Stopping development server...`, 'info');
|
|
200
|
-
}
|
|
201
198
|
this.isRunning = false;
|
|
202
199
|
// Stop file watcher
|
|
203
200
|
if (this.fileWatcher) {
|
|
@@ -209,18 +206,9 @@ class DevRunner {
|
|
|
209
206
|
}
|
|
210
207
|
const uptime = Math.floor((Date.now() - this.startTime.getTime()) / 1000);
|
|
211
208
|
const uptimeStr = this.formatUptime(uptime);
|
|
212
|
-
if (this.options.showInfo) {
|
|
213
|
-
logger_1.default.printLine(`${prefix} ${this.options.runnerName} development server stopped after ${uptimeStr}`, 'info');
|
|
214
|
-
if (this.restartCount > 0) {
|
|
215
|
-
logger_1.default.printLine(`${prefix} Total restarts: ${this.restartCount}`, 'info');
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
209
|
}
|
|
219
210
|
setupGracefulShutdown() {
|
|
220
211
|
const handleSignal = (signal) => {
|
|
221
|
-
if (this.options.showInfo) {
|
|
222
|
-
console.log(`\n${chalk_1.default.yellow(`${figures_1.default.warning} Received ${signal}. Shutting down development server...`)}`);
|
|
223
|
-
}
|
|
224
212
|
this.stop().then(() => {
|
|
225
213
|
process.exit(0);
|
|
226
214
|
});
|
package/dist/src/logger.js
CHANGED
|
@@ -76,9 +76,7 @@ class Logger {
|
|
|
76
76
|
return chalk_1.default.hex(vibrantColors[colorIndex]);
|
|
77
77
|
}
|
|
78
78
|
formatPrefix(command) {
|
|
79
|
-
|
|
80
|
-
const prefix = `${command}:`.padEnd(this.prefixLength);
|
|
81
|
-
return color(prefix);
|
|
79
|
+
return '';
|
|
82
80
|
}
|
|
83
81
|
bufferOutput(output) {
|
|
84
82
|
const currentBuffer = this.outputBuffer.get(output.command) || [];
|