@nexus-framework/cli 0.2.0 → 0.2.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/dist/cli.js +5 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.d.ts +4 -2
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +47 -8
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/generators/docs.d.ts +10 -1
- package/dist/generators/docs.d.ts.map +1 -1
- package/dist/generators/docs.js +40 -65
- package/dist/generators/docs.js.map +1 -1
- package/dist/generators/index.d.ts +2 -1
- package/dist/generators/index.d.ts.map +1 -1
- package/dist/generators/index.js +47 -7
- package/dist/generators/index.js.map +1 -1
- package/dist/generators/spring-boot.d.ts +12 -0
- package/dist/generators/spring-boot.d.ts.map +1 -0
- package/dist/generators/spring-boot.js +220 -0
- package/dist/generators/spring-boot.js.map +1 -0
- package/dist/generators/structure.d.ts +1 -0
- package/dist/generators/structure.d.ts.map +1 -1
- package/dist/generators/structure.js +90 -24
- package/dist/generators/structure.js.map +1 -1
- package/dist/prompts/adoption.d.ts +35 -0
- package/dist/prompts/adoption.d.ts.map +1 -0
- package/dist/prompts/adoption.js +153 -0
- package/dist/prompts/adoption.js.map +1 -0
- package/dist/prompts/frameworks.d.ts +5 -1
- package/dist/prompts/frameworks.d.ts.map +1 -1
- package/dist/prompts/frameworks.js +48 -0
- package/dist/prompts/frameworks.js.map +1 -1
- package/dist/prompts/index.d.ts +2 -1
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +15 -7
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/project-type.d.ts.map +1 -1
- package/dist/prompts/project-type.js +6 -1
- package/dist/prompts/project-type.js.map +1 -1
- package/dist/types/config.d.ts +6 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/file-system.d.ts.map +1 -1
- package/dist/utils/file-system.js +4 -2
- package/dist/utils/file-system.js.map +1 -1
- package/dist/utils/logger.d.ts +2 -2
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +49 -36
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/project-detector.d.ts +20 -4
- package/dist/utils/project-detector.d.ts.map +1 -1
- package/dist/utils/project-detector.js +156 -27
- package/dist/utils/project-detector.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
|
@@ -15,25 +15,68 @@ import fs from 'fs-extra';
|
|
|
15
15
|
/**
|
|
16
16
|
* Check whether a directory looks like it already contains a project.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* Now supports:
|
|
19
|
+
* - Node.js projects (package.json)
|
|
20
|
+
* - Spring Boot projects (pom.xml, build.gradle)
|
|
21
|
+
* - Cloud Functions (firebase.json, .firebaserc)
|
|
22
|
+
* - Go projects (go.mod)
|
|
23
|
+
* - Rust projects (Cargo.toml)
|
|
24
|
+
* - Python projects (pyproject.toml)
|
|
25
|
+
* - Monorepos (checks parent directories for workspace root)
|
|
26
|
+
*
|
|
19
27
|
* This is a fast check used to decide whether to show the
|
|
20
28
|
* "--adopt" suggestion before any heavier analysis.
|
|
21
29
|
*/
|
|
22
30
|
export function isExistingProject(targetDir) {
|
|
23
|
-
|
|
31
|
+
// Check Node.js
|
|
32
|
+
if (fs.existsSync(path.join(targetDir, 'package.json')))
|
|
33
|
+
return true;
|
|
34
|
+
// Check Spring Boot / Maven
|
|
35
|
+
if (fs.existsSync(path.join(targetDir, 'pom.xml')))
|
|
36
|
+
return true;
|
|
37
|
+
if (fs.existsSync(path.join(targetDir, 'build.gradle')))
|
|
38
|
+
return true;
|
|
39
|
+
if (fs.existsSync(path.join(targetDir, 'build.gradle.kts')))
|
|
40
|
+
return true;
|
|
41
|
+
// Check Cloud Functions
|
|
42
|
+
if (fs.existsSync(path.join(targetDir, 'firebase.json')))
|
|
43
|
+
return true;
|
|
44
|
+
if (fs.existsSync(path.join(targetDir, '.firebaserc')))
|
|
45
|
+
return true;
|
|
46
|
+
// Check Go
|
|
47
|
+
if (fs.existsSync(path.join(targetDir, 'go.mod')))
|
|
48
|
+
return true;
|
|
49
|
+
// Check Rust
|
|
50
|
+
if (fs.existsSync(path.join(targetDir, 'Cargo.toml')))
|
|
51
|
+
return true;
|
|
52
|
+
// Check Python
|
|
53
|
+
if (fs.existsSync(path.join(targetDir, 'pyproject.toml')))
|
|
54
|
+
return true;
|
|
55
|
+
// Check if we're inside a monorepo (has parent package.json with workspaces)
|
|
56
|
+
const monorepoRoot = findMonorepoRoot(targetDir);
|
|
57
|
+
if (monorepoRoot)
|
|
58
|
+
return true;
|
|
59
|
+
return false;
|
|
24
60
|
}
|
|
25
61
|
/**
|
|
26
62
|
* Inspect a directory and return detailed project information.
|
|
27
63
|
*
|
|
28
|
-
* This reads package.json (if present)
|
|
29
|
-
*
|
|
30
|
-
*
|
|
64
|
+
* This reads package.json (if present), checks for non-Node.js project
|
|
65
|
+
* markers (go.mod, Cargo.toml, etc.), and detects monorepo structure.
|
|
66
|
+
* The adopt generator uses this to pre-fill NEXUS documentation.
|
|
31
67
|
*/
|
|
32
68
|
export async function detectProject(targetDir) {
|
|
33
69
|
const signals = await detectSignals(targetDir);
|
|
34
70
|
// Default empty info
|
|
35
71
|
const info = {
|
|
36
|
-
detected: signals.hasPackageJson
|
|
72
|
+
detected: signals.hasPackageJson ||
|
|
73
|
+
signals.hasGoMod ||
|
|
74
|
+
signals.hasCargoToml ||
|
|
75
|
+
signals.hasPyProjectToml ||
|
|
76
|
+
signals.hasFirebaseJson ||
|
|
77
|
+
signals.hasPomXml ||
|
|
78
|
+
signals.hasBuildGradle ||
|
|
79
|
+
signals.isInsideMonorepo,
|
|
37
80
|
signals,
|
|
38
81
|
name: null,
|
|
39
82
|
description: null,
|
|
@@ -43,28 +86,50 @@ export async function detectProject(targetDir) {
|
|
|
43
86
|
hasNexus: false,
|
|
44
87
|
dependencies: [],
|
|
45
88
|
};
|
|
46
|
-
|
|
89
|
+
// Handle Spring Boot projects (Java/Kotlin)
|
|
90
|
+
if (signals.hasPomXml || signals.hasBuildGradle) {
|
|
91
|
+
info.framework = 'spring-boot';
|
|
92
|
+
info.name = path.basename(targetDir);
|
|
93
|
+
info.description = 'Spring Boot API';
|
|
94
|
+
info.hasNexus = fs.existsSync(path.join(targetDir, '.nexus'));
|
|
47
95
|
return info;
|
|
48
96
|
}
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
97
|
+
// If no package.json at this level but we're in a monorepo, try reading from monorepo root
|
|
98
|
+
const pkgPath = signals.hasPackageJson
|
|
99
|
+
? path.join(targetDir, 'package.json')
|
|
100
|
+
: signals.monorepoRoot
|
|
101
|
+
? path.join(signals.monorepoRoot, 'package.json')
|
|
102
|
+
: null;
|
|
103
|
+
if (pkgPath && fs.existsSync(pkgPath)) {
|
|
104
|
+
try {
|
|
105
|
+
const pkg = (await fs.readJSON(pkgPath));
|
|
106
|
+
info.name = typeof pkg.name === 'string' ? pkg.name : null;
|
|
107
|
+
info.description = typeof pkg.description === 'string' ? pkg.description : null;
|
|
108
|
+
// Collect all dependency names
|
|
109
|
+
const deps = Object.keys(pkg.dependencies ?? {});
|
|
110
|
+
const devDeps = Object.keys(pkg.devDependencies ?? {});
|
|
111
|
+
info.dependencies = [...deps, ...devDeps];
|
|
112
|
+
// Detect framework
|
|
113
|
+
info.framework = detectFramework(info.dependencies);
|
|
114
|
+
// Detect test framework
|
|
115
|
+
info.testFramework = detectTestFramework(info.dependencies);
|
|
116
|
+
// Detect package manager
|
|
117
|
+
info.packageManager = await detectPM(targetDir);
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
// package.json unreadable — keep defaults
|
|
121
|
+
}
|
|
65
122
|
}
|
|
66
|
-
|
|
67
|
-
|
|
123
|
+
// For non-Node.js projects, set framework to the detected language
|
|
124
|
+
if (!info.framework) {
|
|
125
|
+
if (signals.hasGoMod)
|
|
126
|
+
info.framework = 'go';
|
|
127
|
+
else if (signals.hasCargoToml)
|
|
128
|
+
info.framework = 'rust';
|
|
129
|
+
else if (signals.hasPyProjectToml)
|
|
130
|
+
info.framework = 'python';
|
|
131
|
+
else if (signals.hasFirebaseJson)
|
|
132
|
+
info.framework = 'cloud-functions';
|
|
68
133
|
}
|
|
69
134
|
// Check for existing .nexus/
|
|
70
135
|
info.hasNexus = fs.existsSync(path.join(targetDir, '.nexus'));
|
|
@@ -74,16 +139,80 @@ export async function detectProject(targetDir) {
|
|
|
74
139
|
* Internal helpers
|
|
75
140
|
* ────────────────────────────────────────────────────────────── */
|
|
76
141
|
async function detectSignals(dir) {
|
|
77
|
-
const [hasPackageJson, hasGit, hasSrc, hasTsConfig, hasNodeModules] = await Promise.all([
|
|
142
|
+
const [hasPackageJson, hasGit, hasSrc, hasTsConfig, hasNodeModules, hasGoMod, hasCargoToml, hasPyProjectToml, hasFirebaseJson, hasPomXml, hasBuildGradle,] = await Promise.all([
|
|
78
143
|
fs.pathExists(path.join(dir, 'package.json')),
|
|
79
144
|
fs.pathExists(path.join(dir, '.git')),
|
|
80
145
|
fs.pathExists(path.join(dir, 'src')),
|
|
81
146
|
fs.pathExists(path.join(dir, 'tsconfig.json')),
|
|
82
147
|
fs.pathExists(path.join(dir, 'node_modules')),
|
|
148
|
+
fs.pathExists(path.join(dir, 'go.mod')),
|
|
149
|
+
fs.pathExists(path.join(dir, 'Cargo.toml')),
|
|
150
|
+
fs.pathExists(path.join(dir, 'pyproject.toml')),
|
|
151
|
+
fs.pathExists(path.join(dir, 'firebase.json')),
|
|
152
|
+
fs.pathExists(path.join(dir, 'pom.xml')),
|
|
153
|
+
fs.pathExists(path.join(dir, 'build.gradle')).then(async (exists) => exists || await fs.pathExists(path.join(dir, 'build.gradle.kts'))),
|
|
83
154
|
]);
|
|
84
|
-
|
|
155
|
+
// Check if we're inside a monorepo
|
|
156
|
+
const monorepoRoot = findMonorepoRoot(dir);
|
|
157
|
+
const isInsideMonorepo = !!monorepoRoot && monorepoRoot !== dir;
|
|
158
|
+
return {
|
|
159
|
+
hasPackageJson,
|
|
160
|
+
hasGit,
|
|
161
|
+
hasSrc,
|
|
162
|
+
hasTsConfig,
|
|
163
|
+
hasNodeModules,
|
|
164
|
+
hasGoMod,
|
|
165
|
+
hasCargoToml,
|
|
166
|
+
hasPyProjectToml,
|
|
167
|
+
hasFirebaseJson,
|
|
168
|
+
hasPomXml,
|
|
169
|
+
hasBuildGradle,
|
|
170
|
+
isInsideMonorepo,
|
|
171
|
+
monorepoRoot,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Walk up the directory tree to find a monorepo root.
|
|
176
|
+
*
|
|
177
|
+
* A monorepo root is identified by a package.json with a `workspaces` field
|
|
178
|
+
* (Yarn/npm/pnpm workspaces) or a `pnpm-workspace.yaml` file.
|
|
179
|
+
*
|
|
180
|
+
* Returns the absolute path to the monorepo root, or null if not found.
|
|
181
|
+
*/
|
|
182
|
+
function findMonorepoRoot(startDir) {
|
|
183
|
+
let currentDir = startDir;
|
|
184
|
+
const root = path.parse(currentDir).root;
|
|
185
|
+
// Walk up until we hit the filesystem root
|
|
186
|
+
while (currentDir !== root) {
|
|
187
|
+
const parentDir = path.dirname(currentDir);
|
|
188
|
+
// Check for pnpm-workspace.yaml
|
|
189
|
+
if (fs.existsSync(path.join(parentDir, 'pnpm-workspace.yaml'))) {
|
|
190
|
+
return parentDir;
|
|
191
|
+
}
|
|
192
|
+
// Check for package.json with workspaces
|
|
193
|
+
const pkgPath = path.join(parentDir, 'package.json');
|
|
194
|
+
if (fs.existsSync(pkgPath)) {
|
|
195
|
+
try {
|
|
196
|
+
const pkg = fs.readJSONSync(pkgPath);
|
|
197
|
+
if (pkg.workspaces) {
|
|
198
|
+
return parentDir;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
catch {
|
|
202
|
+
// Ignore unreadable package.json
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
currentDir = parentDir;
|
|
206
|
+
}
|
|
207
|
+
return null;
|
|
85
208
|
}
|
|
86
209
|
function detectFramework(deps) {
|
|
210
|
+
// Cloud Functions
|
|
211
|
+
if (deps.includes('firebase-functions'))
|
|
212
|
+
return 'cloud-functions';
|
|
213
|
+
if (deps.includes('@google-cloud/functions-framework'))
|
|
214
|
+
return 'cloud-functions';
|
|
215
|
+
// Frontend frameworks
|
|
87
216
|
if (deps.includes('next'))
|
|
88
217
|
return 'nextjs';
|
|
89
218
|
if (deps.includes('nuxt') || deps.includes('nuxt3'))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-detector.js","sourceRoot":"","sources":["../../src/utils/project-detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"project-detector.js","sourceRoot":"","sources":["../../src/utils/project-detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAgD1B;;oEAEoE;AAEpE;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB,CAAC,SAAiB;IACjD,gBAAgB;IAChB,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAErE,4BAA4B;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,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,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,CAAC,mCAAmC;IAC5E,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,WAAW,CAAC,CAAC,qCAAqC;IAEtF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAc;IACzC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,MAAM,CAAC;IACzC,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;QAAE,OAAO,MAAM,CAAC;IAC/C,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,GAAW;IACjC,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC;IACpE,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC;IACzE,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3E,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-framework/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The AI-Native Development Framework — turns every project into an AI-powered workspace with structured docs, progressive memory, and configurable agent personas",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -57,11 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@inquirer/prompts": "^7.3.2",
|
|
60
|
+
"boxen": "^8.0.1",
|
|
60
61
|
"chalk": "^5.3.0",
|
|
61
62
|
"commander": "^12.1.0",
|
|
62
63
|
"execa": "^9.5.2",
|
|
63
64
|
"figlet": "^1.8.0",
|
|
64
65
|
"fs-extra": "^11.2.0",
|
|
66
|
+
"gradient-string": "^3.0.0",
|
|
65
67
|
"inquirer": "^12.3.2",
|
|
66
68
|
"mustache": "^4.2.0",
|
|
67
69
|
"ora": "^8.1.1",
|