@configjs/cli 1.0.1 → 1.0.2
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-NNP4BHYA.js → check-KGNJBAPL.js} +2 -2
- package/dist/{chunk-2OIA3HB7.js → chunk-7ZLAP62L.js} +4 -6
- package/dist/{chunk-3IOUJHOM.js → chunk-SCNFVSYD.js} +7 -5
- package/dist/cli.js +4 -4
- package/dist/{install-DAMXWEZF.js → install-FNUEIZQ2.js} +2 -2
- package/dist/{list-X7SEPRAM.js → list-CBEUUZUI.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompatibilityValidator,
|
|
3
3
|
compatibilityRules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SCNFVSYD.js";
|
|
5
5
|
import {
|
|
6
6
|
logger,
|
|
7
7
|
pluginRegistry
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7ZLAP62L.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/check.ts
|
|
11
11
|
import { readFile } from "fs/promises";
|
|
@@ -3569,23 +3569,21 @@ var tailwindcssPlugin = {
|
|
|
3569
3569
|
};
|
|
3570
3570
|
function getViteConfigContentTS() {
|
|
3571
3571
|
return `import { defineConfig } from 'vite'
|
|
3572
|
+
import react from '@vitejs/plugin-react'
|
|
3572
3573
|
import tailwindcss from '@tailwindcss/vite'
|
|
3573
3574
|
|
|
3574
3575
|
export default defineConfig({
|
|
3575
|
-
plugins: [
|
|
3576
|
-
tailwindcss(),
|
|
3577
|
-
],
|
|
3576
|
+
plugins: [react(), tailwindcss()],
|
|
3578
3577
|
})
|
|
3579
3578
|
`;
|
|
3580
3579
|
}
|
|
3581
3580
|
function getViteConfigContentJS() {
|
|
3582
3581
|
return `import { defineConfig } from 'vite'
|
|
3582
|
+
import react from '@vitejs/plugin-react'
|
|
3583
3583
|
import tailwindcss from '@tailwindcss/vite'
|
|
3584
3584
|
|
|
3585
3585
|
export default defineConfig({
|
|
3586
|
-
plugins: [
|
|
3587
|
-
tailwindcss(),
|
|
3588
|
-
],
|
|
3586
|
+
plugins: [react(), tailwindcss()],
|
|
3589
3587
|
})
|
|
3590
3588
|
`;
|
|
3591
3589
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7ZLAP62L.js";
|
|
4
4
|
|
|
5
5
|
// src/core/validator.ts
|
|
6
6
|
var CompatibilityValidator = class {
|
|
@@ -198,14 +198,16 @@ var compatibilityRules = [
|
|
|
198
198
|
severity: "warning",
|
|
199
199
|
allowOverride: true
|
|
200
200
|
},
|
|
201
|
-
// Dépendances - TailwindCSS
|
|
201
|
+
// Dépendances - TailwindCSS v4
|
|
202
|
+
// Note: TailwindCSS v4 avec @tailwindcss/vite ne nécessite plus postcss/autoprefixer
|
|
203
|
+
// Voir: https://tailwindcss.com/docs/installation/using-vite
|
|
202
204
|
{
|
|
203
205
|
type: "REQUIRES",
|
|
204
206
|
plugin: "tailwindcss",
|
|
205
|
-
requires: ["
|
|
206
|
-
reason: "
|
|
207
|
+
requires: ["@tailwindcss/vite"],
|
|
208
|
+
reason: "@tailwindcss/vite est n\xE9cessaire pour utiliser TailwindCSS v4 avec Vite",
|
|
207
209
|
severity: "error",
|
|
208
|
-
autoInstall:
|
|
210
|
+
autoInstall: false,
|
|
209
211
|
allowOverride: false
|
|
210
212
|
},
|
|
211
213
|
// Recommandations - React Router
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "1.0.
|
|
7
|
+
var version = "1.0.2";
|
|
8
8
|
|
|
9
9
|
// src/cli.ts
|
|
10
10
|
var program = new Command();
|
|
@@ -12,7 +12,7 @@ program.name("confjs").description("Configure your frontend stack, instantly").v
|
|
|
12
12
|
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(
|
|
13
13
|
async (options) => {
|
|
14
14
|
try {
|
|
15
|
-
const { installReact } = await import("./install-
|
|
15
|
+
const { installReact } = await import("./install-FNUEIZQ2.js");
|
|
16
16
|
await installReact(options);
|
|
17
17
|
} catch (error) {
|
|
18
18
|
console.error("Error:", error);
|
|
@@ -22,7 +22,7 @@ program.command("react").description("Configure a React project").option("-y, --
|
|
|
22
22
|
);
|
|
23
23
|
program.command("list").description("List available libraries").option("-c, --category <category>", "Filter by category").action(async (options) => {
|
|
24
24
|
try {
|
|
25
|
-
const { listLibraries } = await import("./list-
|
|
25
|
+
const { listLibraries } = await import("./list-CBEUUZUI.js");
|
|
26
26
|
listLibraries(options);
|
|
27
27
|
} catch (error) {
|
|
28
28
|
console.error("Error:", error);
|
|
@@ -31,7 +31,7 @@ program.command("list").description("List available libraries").option("-c, --ca
|
|
|
31
31
|
});
|
|
32
32
|
program.command("check").description("Check compatibility without installing").option("-c, --config <file>", "Configuration file to check").action(async (options) => {
|
|
33
33
|
try {
|
|
34
|
-
const { checkCompatibility } = await import("./check-
|
|
34
|
+
const { checkCompatibility } = await import("./check-KGNJBAPL.js");
|
|
35
35
|
await checkCompatibility(options);
|
|
36
36
|
} catch (error) {
|
|
37
37
|
console.error("Error:", error);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompatibilityValidator,
|
|
3
3
|
compatibilityRules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SCNFVSYD.js";
|
|
5
5
|
import {
|
|
6
6
|
BackupManager,
|
|
7
7
|
ConfigWriter,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
pluginRegistry,
|
|
14
14
|
readPackageJson,
|
|
15
15
|
readTsConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7ZLAP62L.js";
|
|
17
17
|
|
|
18
18
|
// src/core/detector.ts
|
|
19
19
|
import { resolve, join } from "path";
|