@configjs/cli 1.1.6 → 1.1.8
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-AJ4GD66M.js → check-KHMCB7NK.js} +2 -2
- package/dist/{chunk-V75HW2AM.js → chunk-4N3JFZLA.js} +4603 -3218
- package/dist/{chunk-JTTIDBSN.js → chunk-AMBG3TCE.js} +4 -4
- package/dist/{chunk-3NRMV3WL.js → chunk-YQVYFXOD.js} +1 -1
- package/dist/cli.js +6 -6
- package/dist/{list-Y7I5NUWT.js → list-ICEIQD7X.js} +1 -1
- package/dist/{nextjs-command-4G7N6VPP.js → nextjs-command-SGU7KCFM.js} +3 -3
- package/dist/{react-command-C47QFAJ5.js → react-command-AXYWRMBH.js} +3 -3
- package/dist/{vue-command-6I7JVUI2.js → vue-command-SLT6ILZT.js} +3 -3
- package/dist/{vue-installer-2VSYMM6R.js → vue-installer-LWQQCYOP.js} +5 -30
- package/dist/{vue-setup-WY57VJB3.js → vue-setup-JLZVVRSJ.js} +1 -41
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompatibilityValidator,
|
|
3
3
|
allCompatibilityRules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YQVYFXOD.js";
|
|
5
5
|
import {
|
|
6
6
|
BackupManager,
|
|
7
7
|
ConfigWriter,
|
|
8
8
|
getPluginsByCategory,
|
|
9
9
|
pluginRegistry
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4N3JFZLA.js";
|
|
11
11
|
import {
|
|
12
12
|
PluginTracker
|
|
13
13
|
} from "./chunk-TVZWTKJU.js";
|
|
@@ -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-JLZVVRSJ.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-LWQQCYOP.js");
|
|
94
94
|
return await createVueProject(
|
|
95
95
|
options,
|
|
96
96
|
currentDir,
|
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.8";
|
|
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-AXYWRMBH.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-SGU7KCFM.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-SLT6ILZT.js");
|
|
41
41
|
const command = new VueCommand();
|
|
42
42
|
await command.execute(options);
|
|
43
43
|
} catch (error) {
|
|
@@ -48,7 +48,7 @@ program.command("vue").description("Configure a Vue.js project").option("-y, --y
|
|
|
48
48
|
);
|
|
49
49
|
program.command("list").description("List available libraries").option("-c, --category <category>", "Filter by category").action(async (options) => {
|
|
50
50
|
try {
|
|
51
|
-
const { listLibraries } = await import("./list-
|
|
51
|
+
const { listLibraries } = await import("./list-ICEIQD7X.js");
|
|
52
52
|
listLibraries(options);
|
|
53
53
|
} catch (error) {
|
|
54
54
|
console.error("Error:", 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-KHMCB7NK.js");
|
|
61
61
|
await checkCompatibility(options);
|
|
62
62
|
} catch (error) {
|
|
63
63
|
console.error("Error:", error);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AMBG3TCE.js";
|
|
5
|
+
import "./chunk-YQVYFXOD.js";
|
|
6
|
+
import "./chunk-4N3JFZLA.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AMBG3TCE.js";
|
|
5
|
+
import "./chunk-YQVYFXOD.js";
|
|
6
|
+
import "./chunk-4N3JFZLA.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AMBG3TCE.js";
|
|
5
|
+
import "./chunk-YQVYFXOD.js";
|
|
6
|
+
import "./chunk-4N3JFZLA.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
@@ -30,38 +30,13 @@ async function createVueProject(options, currentDir, language) {
|
|
|
30
30
|
];
|
|
31
31
|
await execa("npm", args, {
|
|
32
32
|
cwd: currentDir,
|
|
33
|
-
stdio: "inherit"
|
|
33
|
+
stdio: "inherit",
|
|
34
|
+
env: {
|
|
35
|
+
...process.env,
|
|
36
|
+
npm_config_yes: "true"
|
|
37
|
+
}
|
|
34
38
|
});
|
|
35
39
|
logger.info(t.vue.success);
|
|
36
|
-
const optionalDeps = [];
|
|
37
|
-
if (options.router) {
|
|
38
|
-
optionalDeps.push("vue-router@4");
|
|
39
|
-
}
|
|
40
|
-
if (options.pinia) {
|
|
41
|
-
optionalDeps.push("pinia");
|
|
42
|
-
}
|
|
43
|
-
if (options.vitest) {
|
|
44
|
-
optionalDeps.push("vitest", "@vue/test-utils", "@vitest/ui");
|
|
45
|
-
}
|
|
46
|
-
if (options.eslint) {
|
|
47
|
-
optionalDeps.push(
|
|
48
|
-
"eslint",
|
|
49
|
-
"eslint-plugin-vue",
|
|
50
|
-
"@vue/eslint-config-prettier"
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
if (options.prettier) {
|
|
54
|
-
optionalDeps.push("prettier", "eslint-config-prettier");
|
|
55
|
-
}
|
|
56
|
-
if (optionalDeps.length > 0) {
|
|
57
|
-
logger.info(
|
|
58
|
-
`Installing optional dependencies: ${optionalDeps.join(", ")}`
|
|
59
|
-
);
|
|
60
|
-
await execa("npm", ["install", ...optionalDeps], {
|
|
61
|
-
cwd: projectPath,
|
|
62
|
-
stdio: "inherit"
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
40
|
return projectPath;
|
|
66
41
|
} catch (error) {
|
|
67
42
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -36,41 +36,6 @@ async function promptVueSetup(language) {
|
|
|
36
36
|
message: t.vue.typescript,
|
|
37
37
|
default: true,
|
|
38
38
|
when: (answers2) => answers2.shouldCreate === true
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: "confirm",
|
|
42
|
-
name: "router",
|
|
43
|
-
message: t.vue.router,
|
|
44
|
-
default: true,
|
|
45
|
-
when: (answers2) => answers2.shouldCreate === true
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: "confirm",
|
|
49
|
-
name: "pinia",
|
|
50
|
-
message: t.vue.pinia,
|
|
51
|
-
default: true,
|
|
52
|
-
when: (answers2) => answers2.shouldCreate === true
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: "confirm",
|
|
56
|
-
name: "vitest",
|
|
57
|
-
message: t.vue.vitest,
|
|
58
|
-
default: true,
|
|
59
|
-
when: (answers2) => answers2.shouldCreate === true
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: "confirm",
|
|
63
|
-
name: "eslint",
|
|
64
|
-
message: t.vue.eslint,
|
|
65
|
-
default: true,
|
|
66
|
-
when: (answers2) => answers2.shouldCreate === true
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: "confirm",
|
|
70
|
-
name: "prettier",
|
|
71
|
-
message: t.vue.prettier,
|
|
72
|
-
default: true,
|
|
73
|
-
when: (answers2) => answers2.shouldCreate === true
|
|
74
39
|
}
|
|
75
40
|
]);
|
|
76
41
|
if (!answers.shouldCreate) {
|
|
@@ -78,12 +43,7 @@ async function promptVueSetup(language) {
|
|
|
78
43
|
}
|
|
79
44
|
return {
|
|
80
45
|
projectName: answers.projectName.trim(),
|
|
81
|
-
typescript: answers.typescript
|
|
82
|
-
router: answers.router,
|
|
83
|
-
pinia: answers.pinia,
|
|
84
|
-
vitest: answers.vitest,
|
|
85
|
-
eslint: answers.eslint,
|
|
86
|
-
prettier: answers.prettier
|
|
46
|
+
typescript: answers.typescript
|
|
87
47
|
};
|
|
88
48
|
}
|
|
89
49
|
export {
|