@configjs/cli 1.1.5 → 1.1.6
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/{check-AJCBQBFD.js → check-AJ4GD66M.js} +1 -1
- package/dist/{chunk-D37FHAGO.js → chunk-3NRMV3WL.js} +1 -1
- package/dist/{chunk-CNAEKUBH.js → chunk-JTTIDBSN.js} +8 -8
- package/dist/{chunk-3V72QFFY.js → chunk-QBMH2K7B.js} +3 -0
- package/dist/cli.js +5 -5
- package/dist/{nextjs-command-AUVNEBHG.js → nextjs-command-4G7N6VPP.js} +3 -3
- package/dist/{nextjs-installer-RWBGWW23.js → nextjs-installer-5C3VBCZE.js} +1 -1
- package/dist/{nextjs-setup-7LWMEC5I.js → nextjs-setup-YYXNONJ6.js} +1 -1
- package/dist/{react-command-DTIKCCPO.js → react-command-C47QFAJ5.js} +3 -3
- package/dist/{vite-installer-XIJFJ4CN.js → vite-installer-OPE53M3C.js} +1 -1
- package/dist/{vite-setup-3U22LJFG.js → vite-setup-B5TXMX72.js} +6 -6
- package/dist/{vue-command-R4XETTRT.js → vue-command-6I7JVUI2.js} +3 -3
- package/dist/{vue-installer-SFROF4N3.js → vue-installer-2VSYMM6R.js} +1 -1
- package/dist/{vue-setup-X65P3CZX.js → vue-setup-WY57VJB3.js} +1 -1
- package/package.json +1 -1
|
@@ -82,7 +82,7 @@ function generateConflictRules(plugins) {
|
|
|
82
82
|
(p) => p.name === incompatiblePluginName
|
|
83
83
|
);
|
|
84
84
|
if (!incompatiblePlugin) {
|
|
85
|
-
logger.
|
|
85
|
+
logger.debug(
|
|
86
86
|
`Plugin ${plugin.name} declares incompatibleWith ${incompatiblePluginName}, but plugin not found in registry`
|
|
87
87
|
);
|
|
88
88
|
continue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompatibilityValidator,
|
|
3
3
|
allCompatibilityRules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3NRMV3WL.js";
|
|
5
5
|
import {
|
|
6
6
|
BackupManager,
|
|
7
7
|
ConfigWriter,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-HM2JWJOO.js";
|
|
20
20
|
import {
|
|
21
21
|
getTranslations
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QBMH2K7B.js";
|
|
23
23
|
|
|
24
24
|
// src/core/framework-registry.ts
|
|
25
25
|
var frameworkRegistry = {
|
|
@@ -34,11 +34,11 @@ var frameworkRegistry = {
|
|
|
34
34
|
ts: "react-ts"
|
|
35
35
|
},
|
|
36
36
|
getSetupPrompt: async (language) => {
|
|
37
|
-
const { promptViteSetup } = await import("./vite-setup-
|
|
37
|
+
const { promptViteSetup } = await import("./vite-setup-B5TXMX72.js");
|
|
38
38
|
return await promptViteSetup(language);
|
|
39
39
|
},
|
|
40
40
|
createProject: async (options, currentDir, language) => {
|
|
41
|
-
const { createViteProject } = await import("./vite-installer-
|
|
41
|
+
const { createViteProject } = await import("./vite-installer-OPE53M3C.js");
|
|
42
42
|
return await createViteProject(
|
|
43
43
|
options,
|
|
44
44
|
currentDir,
|
|
@@ -58,11 +58,11 @@ var frameworkRegistry = {
|
|
|
58
58
|
defaultBundler: "nextjs",
|
|
59
59
|
createCommand: "npm create next-app@latest",
|
|
60
60
|
getSetupPrompt: async (language) => {
|
|
61
|
-
const { promptNextjsSetup } = await import("./nextjs-setup-
|
|
61
|
+
const { promptNextjsSetup } = await import("./nextjs-setup-YYXNONJ6.js");
|
|
62
62
|
return await promptNextjsSetup(language);
|
|
63
63
|
},
|
|
64
64
|
createProject: async (options, currentDir, language) => {
|
|
65
|
-
const { createNextjsProject } = await import("./nextjs-installer-
|
|
65
|
+
const { createNextjsProject } = await import("./nextjs-installer-5C3VBCZE.js");
|
|
66
66
|
return await createNextjsProject(
|
|
67
67
|
options,
|
|
68
68
|
currentDir,
|
|
@@ -86,11 +86,11 @@ var frameworkRegistry = {
|
|
|
86
86
|
ts: "vue-ts"
|
|
87
87
|
},
|
|
88
88
|
getSetupPrompt: async (language) => {
|
|
89
|
-
const { promptVueSetup } = await import("./vue-setup-
|
|
89
|
+
const { promptVueSetup } = await import("./vue-setup-WY57VJB3.js");
|
|
90
90
|
return await promptVueSetup(language);
|
|
91
91
|
},
|
|
92
92
|
createProject: async (options, currentDir, language) => {
|
|
93
|
-
const { createVueProject } = await import("./vue-installer-
|
|
93
|
+
const { createVueProject } = await import("./vue-installer-2VSYMM6R.js");
|
|
94
94
|
return await createVueProject(
|
|
95
95
|
options,
|
|
96
96
|
currentDir,
|
|
@@ -61,6 +61,7 @@ var fr = {
|
|
|
61
61
|
proposeSetup: "Souhaitez-vous cr\xE9er un nouveau projet React avec Vite ?",
|
|
62
62
|
projectName: "Nom du projet",
|
|
63
63
|
projectNamePlaceholder: "mon-projet-react",
|
|
64
|
+
typescript: "Utiliser TypeScript ?",
|
|
64
65
|
template: "Template",
|
|
65
66
|
templateOptions: [
|
|
66
67
|
{ value: "react", name: "React (JavaScript)" },
|
|
@@ -183,6 +184,7 @@ var en = {
|
|
|
183
184
|
proposeSetup: "Would you like to create a new React project with Vite?",
|
|
184
185
|
projectName: "Project name",
|
|
185
186
|
projectNamePlaceholder: "my-react-project",
|
|
187
|
+
typescript: "Use TypeScript?",
|
|
186
188
|
template: "Template",
|
|
187
189
|
templateOptions: [
|
|
188
190
|
{ value: "react", name: "React (JavaScript)" },
|
|
@@ -305,6 +307,7 @@ var es = {
|
|
|
305
307
|
proposeSetup: "\xBFDesea crear un nuevo proyecto React con Vite?",
|
|
306
308
|
projectName: "Nombre del proyecto",
|
|
307
309
|
projectNamePlaceholder: "mi-proyecto-react",
|
|
310
|
+
typescript: "\xBFUsar TypeScript?",
|
|
308
311
|
template: "Plantilla",
|
|
309
312
|
templateOptions: [
|
|
310
313
|
{ value: "react", name: "React (JavaScript)" },
|
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./chunk-QGM4M3NI.js";
|
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "1.1.
|
|
8
|
+
var version = "1.1.6";
|
|
9
9
|
|
|
10
10
|
// src/cli.ts
|
|
11
11
|
var program = new Command();
|
|
@@ -13,7 +13,7 @@ program.name("confjs").description("Configure your frontend stack, instantly").v
|
|
|
13
13
|
program.command("react").description("Configure a React project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
14
14
|
async (options) => {
|
|
15
15
|
try {
|
|
16
|
-
const { ReactCommand } = await import("./react-command-
|
|
16
|
+
const { ReactCommand } = await import("./react-command-C47QFAJ5.js");
|
|
17
17
|
const command = new ReactCommand();
|
|
18
18
|
await command.execute(options);
|
|
19
19
|
} catch (error) {
|
|
@@ -25,7 +25,7 @@ program.command("react").description("Configure a React project").option("-y, --
|
|
|
25
25
|
program.command("nextjs").description("Configure a Next.js project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
26
26
|
async (options) => {
|
|
27
27
|
try {
|
|
28
|
-
const { NextjsCommand } = await import("./nextjs-command-
|
|
28
|
+
const { NextjsCommand } = await import("./nextjs-command-4G7N6VPP.js");
|
|
29
29
|
const command = new NextjsCommand();
|
|
30
30
|
await command.execute(options);
|
|
31
31
|
} catch (error) {
|
|
@@ -37,7 +37,7 @@ program.command("nextjs").description("Configure a Next.js project").option("-y,
|
|
|
37
37
|
program.command("vue").description("Configure a Vue.js project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
38
38
|
async (options) => {
|
|
39
39
|
try {
|
|
40
|
-
const { VueCommand } = await import("./vue-command-
|
|
40
|
+
const { VueCommand } = await import("./vue-command-6I7JVUI2.js");
|
|
41
41
|
const command = new VueCommand();
|
|
42
42
|
await command.execute(options);
|
|
43
43
|
} catch (error) {
|
|
@@ -57,7 +57,7 @@ program.command("list").description("List available libraries").option("-c, --ca
|
|
|
57
57
|
});
|
|
58
58
|
program.command("check").description("Check compatibility without installing").option("-c, --config <file>", "Configuration file to check").action(async (options) => {
|
|
59
59
|
try {
|
|
60
|
-
const { checkCompatibility } = await import("./check-
|
|
60
|
+
const { checkCompatibility } = await import("./check-AJ4GD66M.js");
|
|
61
61
|
await checkCompatibility(options);
|
|
62
62
|
} catch (error) {
|
|
63
63
|
console.error("Error:", error);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JTTIDBSN.js";
|
|
5
|
+
import "./chunk-3NRMV3WL.js";
|
|
6
6
|
import "./chunk-V75HW2AM.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
@@ -12,7 +12,7 @@ import "./chunk-MQV3WNMH.js";
|
|
|
12
12
|
import "./chunk-HM2JWJOO.js";
|
|
13
13
|
import {
|
|
14
14
|
getTranslations
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QBMH2K7B.js";
|
|
16
16
|
import "./chunk-QGM4M3NI.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/nextjs-command.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JTTIDBSN.js";
|
|
5
|
+
import "./chunk-3NRMV3WL.js";
|
|
6
6
|
import "./chunk-V75HW2AM.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
@@ -12,7 +12,7 @@ import "./chunk-MQV3WNMH.js";
|
|
|
12
12
|
import "./chunk-HM2JWJOO.js";
|
|
13
13
|
import {
|
|
14
14
|
getTranslations
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QBMH2K7B.js";
|
|
16
16
|
import "./chunk-QGM4M3NI.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/react-command.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTranslations
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QBMH2K7B.js";
|
|
4
4
|
import "./chunk-QGM4M3NI.js";
|
|
5
5
|
|
|
6
6
|
// src/cli/prompts/vite-setup.ts
|
|
@@ -31,10 +31,10 @@ async function promptViteSetup(language) {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
type: "
|
|
35
|
-
name: "
|
|
36
|
-
message: t.vite.
|
|
37
|
-
|
|
34
|
+
type: "confirm",
|
|
35
|
+
name: "typescript",
|
|
36
|
+
message: t.vite.typescript,
|
|
37
|
+
default: true,
|
|
38
38
|
when: (answers2) => answers2.shouldCreate === true
|
|
39
39
|
}
|
|
40
40
|
]);
|
|
@@ -43,7 +43,7 @@ async function promptViteSetup(language) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
projectName: answers.projectName.trim(),
|
|
46
|
-
template: answers.
|
|
46
|
+
template: answers.typescript ? "react-ts" : "react"
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JTTIDBSN.js";
|
|
5
|
+
import "./chunk-3NRMV3WL.js";
|
|
6
6
|
import "./chunk-V75HW2AM.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
@@ -12,7 +12,7 @@ import "./chunk-MQV3WNMH.js";
|
|
|
12
12
|
import "./chunk-HM2JWJOO.js";
|
|
13
13
|
import {
|
|
14
14
|
getTranslations
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QBMH2K7B.js";
|
|
16
16
|
import "./chunk-QGM4M3NI.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/vue-command.ts
|