novatec-cli 3.0.3 โ 3.0.4
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/prompts.js +17 -0
- package/package.json +1 -1
package/lib/prompts.js
CHANGED
|
@@ -52,6 +52,23 @@ export const PM_CHOICES = [
|
|
|
52
52
|
];
|
|
53
53
|
|
|
54
54
|
export async function askProjectOptions(nameArg, options) {
|
|
55
|
+
// --yes: skip all prompts, use flags or defaults
|
|
56
|
+
if (options.yes) {
|
|
57
|
+
const name = nameArg || 'my-app';
|
|
58
|
+
const p = path.resolve(process.cwd(), name);
|
|
59
|
+
if (await fse.pathExists(p)) await fse.remove(p);
|
|
60
|
+
return {
|
|
61
|
+
name,
|
|
62
|
+
typescript: false,
|
|
63
|
+
frontend: options.frontend || 'react',
|
|
64
|
+
backend: options.backend || 'express',
|
|
65
|
+
db: options.db || 'none',
|
|
66
|
+
architecture: options.architecture || 'mvc',
|
|
67
|
+
pm: options.packageManager || 'npm',
|
|
68
|
+
install: false,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
55
72
|
const a = {};
|
|
56
73
|
|
|
57
74
|
// Nombre
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "novatec-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "๐ NOVATEC FULLSTACK CLI โ Generador profesional de proyectos full stack | React, Next.js, Vue, Express, NestJS, FastAPI y mรกs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/create.js",
|