erne-universal 0.10.14 → 0.10.15
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/lib/init.js +3 -41
- package/package.json +1 -1
package/lib/init.js
CHANGED
|
@@ -273,48 +273,10 @@ module.exports = async function init() {
|
|
|
273
273
|
console.log(` ⚠ Audit skipped: ${err.message}`);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
// ───
|
|
277
|
-
|
|
278
|
-
if (!skipDashboard) {
|
|
279
|
-
try {
|
|
280
|
-
const fs2 = require('fs');
|
|
281
|
-
const dashboardDir = path.resolve(__dirname, '..', 'dashboard');
|
|
282
|
-
const depsInstalled = fs2.existsSync(path.join(dashboardDir, 'node_modules', 'better-sqlite3'));
|
|
283
|
-
|
|
284
|
-
if (depsInstalled) {
|
|
285
|
-
const serverPath = path.resolve(dashboardDir, 'server.js');
|
|
286
|
-
const { fork } = require('child_process');
|
|
287
|
-
const child = fork(serverPath, [], {
|
|
288
|
-
cwd,
|
|
289
|
-
detached: true,
|
|
290
|
-
stdio: 'ignore',
|
|
291
|
-
env: { ...process.env, ERNE_PROJECT_DIR: cwd },
|
|
292
|
-
});
|
|
293
|
-
child.unref();
|
|
294
|
-
|
|
295
|
-
let port = 3333;
|
|
296
|
-
try {
|
|
297
|
-
const { resolveDashboardPort } = require('../scripts/hooks/lib/port-registry');
|
|
298
|
-
port = resolveDashboardPort(cwd) || 3333;
|
|
299
|
-
} catch { /* fallback 3333 */ }
|
|
300
|
-
|
|
301
|
-
console.log(` ✓ Dashboard: http://localhost:${port}`);
|
|
302
|
-
} else {
|
|
303
|
-
console.log(' ℹ Dashboard: run \x1b[36mnpx erne-universal dashboard\x1b[0m to start (first launch installs deps ~2min)');
|
|
304
|
-
}
|
|
305
|
-
} catch {
|
|
306
|
-
console.log(' ℹ Dashboard: run \x1b[36mnpx erne-universal dashboard\x1b[0m to start');
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
console.log('');
|
|
311
|
-
console.log(' \x1b[32mDone!\x1b[0m ERNE is ready.');
|
|
276
|
+
// ─── Dashboard ───
|
|
277
|
+
console.log(' ℹ Dashboard: run \x1b[36mnpx erne-universal dashboard\x1b[0m to launch');
|
|
312
278
|
console.log('');
|
|
313
|
-
console.log('
|
|
314
|
-
console.log(' • Type \x1b[36m/erne-plan\x1b[0m to plan a feature');
|
|
315
|
-
console.log(' • Type \x1b[36m/erne-perf\x1b[0m to profile performance');
|
|
316
|
-
console.log(' • Type \x1b[36m/erne-doctor\x1b[0m to check project health');
|
|
317
|
-
console.log(' • See all commands: type \x1b[36m/erne-\x1b[0m and press Tab');
|
|
279
|
+
console.log(' \x1b[32mDone!\x1b[0m ERNE is ready. Use /erne- commands (e.g. /erne-plan, /erne-perf, /erne-doctor).');
|
|
318
280
|
console.log('');
|
|
319
281
|
} finally {
|
|
320
282
|
if (rl) rl.close();
|