neex 0.6.4 → 0.6.6
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.
- package/dist/src/dev-runner.js +11 -10
- package/package.json +1 -1
package/dist/src/dev-runner.js
CHANGED
|
@@ -109,23 +109,24 @@ class DevRunner {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
printDevBanner() {
|
|
112
|
-
var _a, _b;
|
|
112
|
+
var _a, _b, _c;
|
|
113
113
|
if (!this.options.showInfo) {
|
|
114
114
|
return; // Don't show banner if showInfo is false
|
|
115
115
|
}
|
|
116
116
|
const prefix = chalk_1.default.cyan(`[${this.options.runnerName}]`);
|
|
117
117
|
const uptime = Math.floor((Date.now() - this.startTime.getTime()) / 1000);
|
|
118
118
|
const uptimeStr = this.formatUptime(uptime);
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
console.log(`${prefix} ${
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
if (this.options.showInfo) {
|
|
120
|
+
console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Starting file watcher...`));
|
|
121
|
+
console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} File watcher started. Monitoring ${((_a = this.options.watch) === null || _a === void 0 ? void 0 : _a.length) || 1} locations`));
|
|
122
|
+
console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Watching extensions: ${((_b = this.options.ext) === null || _b === void 0 ? void 0 : _b.join(', ')) || 'js, mjs, json, ts, tsx, jsx, vue, svelte'}`));
|
|
123
|
+
console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Uptime: ${uptimeStr}`));
|
|
124
|
+
console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Watching: ${((_c = this.options.watch) === null || _c === void 0 ? void 0 : _c.join(', ')) || 'current directory'}`));
|
|
125
|
+
if (this.restartCount > 0) {
|
|
126
|
+
console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Restarted ${this.restartCount} times`));
|
|
127
|
+
}
|
|
128
|
+
console.log('');
|
|
127
129
|
}
|
|
128
|
-
console.log('');
|
|
129
130
|
}
|
|
130
131
|
formatUptime(seconds) {
|
|
131
132
|
if (seconds < 60) {
|