@nextsparkjs/cli 0.1.0-beta.76 → 0.1.0-beta.78
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/bin/nextspark.js +0 -0
- package/dist/cli.js +21 -21
- package/package.json +8 -8
package/bin/nextspark.js
CHANGED
|
File without changes
|
package/dist/cli.js
CHANGED
|
@@ -531,7 +531,7 @@ function validateSlug(slug) {
|
|
|
531
531
|
return true;
|
|
532
532
|
}
|
|
533
533
|
async function promptProjectInfo() {
|
|
534
|
-
showSection("Project Information",
|
|
534
|
+
showSection("Project Information", 2, 10);
|
|
535
535
|
const projectName = await input({
|
|
536
536
|
message: "What is your project name?",
|
|
537
537
|
default: "My SaaS App",
|
|
@@ -569,7 +569,7 @@ var PROJECT_TYPE_OPTIONS = [
|
|
|
569
569
|
}
|
|
570
570
|
];
|
|
571
571
|
async function promptProjectType() {
|
|
572
|
-
showSection("Project Type",
|
|
572
|
+
showSection("Project Type", 1, 10);
|
|
573
573
|
const projectType = await select({
|
|
574
574
|
message: "What type of project do you want to create?",
|
|
575
575
|
choices: PROJECT_TYPE_OPTIONS,
|
|
@@ -1148,8 +1148,8 @@ import { confirm as confirm4, input as input3 } from "@inquirer/prompts";
|
|
|
1148
1148
|
|
|
1149
1149
|
// src/wizard/prompts/index.ts
|
|
1150
1150
|
async function runAllPrompts() {
|
|
1151
|
-
const projectInfo = await promptProjectInfo();
|
|
1152
1151
|
const projectTypeConfig = await promptProjectType();
|
|
1152
|
+
const projectInfo = await promptProjectInfo();
|
|
1153
1153
|
const teamConfig = await promptTeamConfig();
|
|
1154
1154
|
const i18nConfig = await promptI18nConfig();
|
|
1155
1155
|
const billingConfig = await promptBillingConfig();
|
|
@@ -1172,8 +1172,8 @@ async function runAllPrompts() {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
async function runQuickPrompts() {
|
|
1175
|
-
const projectInfo = await promptProjectInfo();
|
|
1176
1175
|
const projectTypeConfig = await promptProjectType();
|
|
1176
|
+
const projectInfo = await promptProjectInfo();
|
|
1177
1177
|
const teamConfig = await promptTeamConfig();
|
|
1178
1178
|
const i18nConfig = await promptI18nConfig();
|
|
1179
1179
|
const billingConfig = await promptBillingConfig();
|
|
@@ -1196,8 +1196,8 @@ async function runQuickPrompts() {
|
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
1198
|
async function runExpertPrompts() {
|
|
1199
|
-
const projectInfo = await promptProjectInfo();
|
|
1200
1199
|
const projectTypeConfig = await promptProjectType();
|
|
1200
|
+
const projectInfo = await promptProjectInfo();
|
|
1201
1201
|
const teamConfig = await promptTeamConfig();
|
|
1202
1202
|
const i18nConfig = await promptI18nConfig();
|
|
1203
1203
|
const billingConfig = await promptBillingConfig();
|
|
@@ -3463,22 +3463,6 @@ async function runWizard(options = { mode: "interactive" }) {
|
|
|
3463
3463
|
try {
|
|
3464
3464
|
let selectedTheme = null;
|
|
3465
3465
|
let selectedPlugins = [];
|
|
3466
|
-
if (options.theme !== void 0) {
|
|
3467
|
-
selectedTheme = options.theme === "none" ? null : options.theme;
|
|
3468
|
-
showInfo(`Reference theme: ${selectedTheme || "None"}`);
|
|
3469
|
-
} else if (!options.preset && options.mode !== "quick") {
|
|
3470
|
-
selectedTheme = await promptThemeSelection();
|
|
3471
|
-
}
|
|
3472
|
-
if (options.plugins !== void 0) {
|
|
3473
|
-
selectedPlugins = options.plugins;
|
|
3474
|
-
if (selectedPlugins.length > 0) {
|
|
3475
|
-
showInfo(`Selected plugins: ${selectedPlugins.join(", ")}`);
|
|
3476
|
-
}
|
|
3477
|
-
} else if (!options.preset && options.mode !== "quick" && !options.yes) {
|
|
3478
|
-
selectedPlugins = await promptPluginsSelection(selectedTheme);
|
|
3479
|
-
} else if (selectedTheme) {
|
|
3480
|
-
selectedPlugins = getRequiredPlugins(selectedTheme);
|
|
3481
|
-
}
|
|
3482
3466
|
let config2;
|
|
3483
3467
|
if (options.preset) {
|
|
3484
3468
|
config2 = await runPresetMode(options.preset, options);
|
|
@@ -3496,6 +3480,22 @@ async function runWizard(options = { mode: "interactive" }) {
|
|
|
3496
3480
|
break;
|
|
3497
3481
|
}
|
|
3498
3482
|
}
|
|
3483
|
+
if (options.theme !== void 0) {
|
|
3484
|
+
selectedTheme = options.theme === "none" ? null : options.theme;
|
|
3485
|
+
showInfo(`Reference theme: ${selectedTheme || "None"}`);
|
|
3486
|
+
} else if (!options.preset && options.mode !== "quick") {
|
|
3487
|
+
selectedTheme = await promptThemeSelection();
|
|
3488
|
+
}
|
|
3489
|
+
if (options.plugins !== void 0) {
|
|
3490
|
+
selectedPlugins = options.plugins;
|
|
3491
|
+
if (selectedPlugins.length > 0) {
|
|
3492
|
+
showInfo(`Selected plugins: ${selectedPlugins.join(", ")}`);
|
|
3493
|
+
}
|
|
3494
|
+
} else if (!options.preset && options.mode !== "quick" && !options.yes) {
|
|
3495
|
+
selectedPlugins = await promptPluginsSelection(selectedTheme);
|
|
3496
|
+
} else if (selectedTheme) {
|
|
3497
|
+
selectedPlugins = getRequiredPlugins(selectedTheme);
|
|
3498
|
+
}
|
|
3499
3499
|
showConfigSummary(config2);
|
|
3500
3500
|
showConfigPreview(config2);
|
|
3501
3501
|
if (!options.yes) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextsparkjs/cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.78",
|
|
4
4
|
"description": "NextSpark CLI - Complete development toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
"bin",
|
|
14
14
|
"templates"
|
|
15
15
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsup src/cli.ts --format esm --dts --outDir dist",
|
|
18
|
-
"dev": "tsup src/cli.ts --format esm --watch"
|
|
19
|
-
},
|
|
20
16
|
"dependencies": {
|
|
21
17
|
"@inquirer/prompts": "^7.2.0",
|
|
22
18
|
"@nextsparkjs/core": "^0.1.0-beta.75",
|
|
@@ -28,12 +24,12 @@
|
|
|
28
24
|
"tar": "^7.0.0"
|
|
29
25
|
},
|
|
30
26
|
"devDependencies": {
|
|
31
|
-
"@nextsparkjs/core": "workspace:*",
|
|
32
27
|
"@types/fs-extra": "^11.0.4",
|
|
33
28
|
"@types/node": "^20.0.0",
|
|
34
29
|
"@types/tar": "^6.1.0",
|
|
35
30
|
"tsup": "^8.0.0",
|
|
36
|
-
"typescript": "^5.0.0"
|
|
31
|
+
"typescript": "^5.0.0",
|
|
32
|
+
"@nextsparkjs/core": "0.1.0-beta.57"
|
|
37
33
|
},
|
|
38
34
|
"keywords": [
|
|
39
35
|
"nextspark",
|
|
@@ -50,5 +46,9 @@
|
|
|
50
46
|
},
|
|
51
47
|
"engines": {
|
|
52
48
|
"node": ">=18.0.0"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsup src/cli.ts --format esm --dts --outDir dist",
|
|
52
|
+
"dev": "tsup src/cli.ts --format esm --watch"
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|