project-compass 3.8.1 → 3.9.1
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/package.json +1 -1
- package/src/cli.js +4 -4
- package/src/components/Navigator.js +1 -1
- package/src/detectors/frameworks.js +2 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -52,14 +52,14 @@ function loadConfig() {
|
|
|
52
52
|
showArtBoard: true,
|
|
53
53
|
showHelpCards: false,
|
|
54
54
|
showStructureGuide: false,
|
|
55
|
-
maxVisibleProjects:
|
|
55
|
+
maxVisibleProjects: 4,
|
|
56
56
|
...parsed,
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
} catch (error) {
|
|
60
60
|
console.error(`Ignoring corrupt config: ${error.message}`);
|
|
61
61
|
}
|
|
62
|
-
return {customCommands: {}, showArtBoard: true, showHelpCards: false, showStructureGuide: false, maxVisibleProjects:
|
|
62
|
+
return {customCommands: {}, showArtBoard: true, showHelpCards: false, showStructureGuide: false, maxVisibleProjects: 4};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function useScanner(rootPath) {
|
|
@@ -293,7 +293,7 @@ function Compass({rootPath, initialView = 'navigator'}) {
|
|
|
293
293
|
|
|
294
294
|
useInput((input, key) => {
|
|
295
295
|
if (quitConfirm) {
|
|
296
|
-
if (input?.toLowerCase() === 'y') { killAllTasks(); exit(); return; }
|
|
296
|
+
if (input?.toLowerCase() === 'y') { killAllTasks(); console.clear(); exit(); return; }
|
|
297
297
|
if (input?.toLowerCase() === 'n' || key.escape) { setQuitConfirm(false); return; }
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
@@ -466,7 +466,7 @@ function Compass({rootPath, initialView = 'navigator'}) {
|
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
468
|
if (shiftCombo('q') || isCtrlC) {
|
|
469
|
-
if (hasRunningTasks) setQuitConfirm(true); else exit();
|
|
469
|
+
if (hasRunningTasks) setQuitConfirm(true); else { console.clear(); exit(); }
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
472
|
if (shiftCombo('c') && viewMode === 'detail' && selectedProject) { setCustomMode(true); setCustomInput(''); setCustomCursor(0); return; }
|
|
@@ -163,7 +163,8 @@ export const builtInFrameworks = [
|
|
|
163
163
|
},
|
|
164
164
|
commands(project) {
|
|
165
165
|
const pm = project.metadata?.packageManager || 'npm';
|
|
166
|
-
|
|
166
|
+
// Moved to 'setup' to avoid hijacking the primary 'install' (I) macro
|
|
167
|
+
return { setup: { label: 'Tailwind Init', command: [pm, 'install', '-D', 'tailwindcss'], source: 'framework' } };
|
|
167
168
|
}
|
|
168
169
|
},
|
|
169
170
|
{
|