@configjs/cli 1.1.7 → 1.1.9

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/README.fr.md CHANGED
@@ -164,10 +164,11 @@ ConfigJS prévient les conflits avant qu'ils ne se produisent :
164
164
  - ✅ **Dépendances Automatiques** : TailwindCSS nécessite PostCSS → installé automatiquement
165
165
  - ✅ **Suivi des Plugins** : Mémorise les plugins installés (`.configjsrc`)
166
166
 
167
- ### 📦 Bibliothèques Supportées (40+ Plugins)
167
+ ### 📦 Bibliothèques Supportées (44+ Plugins)
168
168
 
169
169
  #### 🎨 CSS / Styling
170
170
  - TailwindCSS v4 (avec @tailwindcss/vite)
171
+ - TailwindCSS Next.js
171
172
  - Styled Components
172
173
  - React Bootstrap
173
174
  - Emotion
@@ -176,50 +177,69 @@ ConfigJS prévient les conflits avant qu'ils ne se produisent :
176
177
  #### 🧭 Routing
177
178
  - React Router v7
178
179
  - TanStack Router
180
+ - Vue Router (Vue.js)
179
181
 
180
182
  #### 🗂️ Gestion d'État
181
183
  - Redux Toolkit
182
184
  - Zustand
183
185
  - Jotai
184
- - MobX
186
+ - Pinia (Vue.js)
185
187
 
186
188
  #### 🌐 Client HTTP
187
189
  - Axios
188
190
  - TanStack Query (React Query)
191
+ - TanStack Query Vue
189
192
  - Fetch Wrapper
190
193
 
191
194
  #### 📝 Formulaires
192
195
  - React Hook Form
193
- - Formik
194
196
  - Zod (validation)
195
197
  - Yup (validation)
196
198
 
197
199
  #### 🎨 Composants UI
198
200
  - Shadcn/ui
201
+ - Shadcn/ui Next.js
199
202
  - Radix UI
200
203
  - React Icons
201
204
  - Lucide Icons
202
205
  - React Hot Toast
206
+ - React Hot Toast Next.js
207
+ - Vuetify (Vue.js)
203
208
 
204
209
  #### 🧪 Tests
205
210
  - React Testing Library
211
+ - Vue Test Utils
212
+ - Vue Testing Library
206
213
  - Vitest
207
214
  - Jest
208
215
 
209
216
  #### 🛠️ Outillage
210
217
  - ESLint
218
+ - ESLint Vue
211
219
  - Prettier
212
220
  - Husky (Git hooks)
221
+ - commitlint
213
222
  - lint-staged
214
223
  - date-fns
224
+ - Vue TSC
215
225
 
216
226
  #### ✨ Animation
217
227
  - Framer Motion
218
228
  - React Spring
219
229
 
220
230
  #### 🔧 Utilitaires
221
- - Lodash
222
- - clsx / classnames
231
+ - VueUse (Vue.js)
232
+ - unplugin-auto-import (Vue.js)
233
+ - unplugin-vue-components (Vue.js)
234
+
235
+ #### 🌍 Internationalisation
236
+ - Vue i18n (Vue.js)
237
+
238
+ #### 📸 Spécifique à Next.js
239
+ - Image Optimization
240
+ - Font Optimization
241
+ - API Routes
242
+ - Middleware
223
243
 
224
244
  ### 🔄 Rollback Automatique
225
245
 
@@ -389,7 +409,7 @@ npm run build
389
409
 
390
410
  ## 📋 Prérequis
391
411
 
392
- - **Node.js** ≥ 18.0.0
412
+ - **Node.js** ≥ 20.0.0
393
413
  - **npm** / **yarn** / **pnpm** / **bun**
394
414
  - Un projet React existant (Vite, CRA, ou configuration personnalisée)
395
415
 
@@ -402,7 +422,11 @@ npm run build
402
422
  - [x] Détection des plugins (package.json + tracker)
403
423
  - [x] UX console améliorée avec couleurs
404
424
  - [x] Installation séquentielle (prévient la corruption)
405
- - [x] 40+ plugins à travers 10 catégories
425
+ - [x] Support React complet (React 18/19)
426
+ - [x] 44+ plugins à travers 10 catégories
427
+ - [x] Support Next.js complet (13/14/15)
428
+ - [x] Support Vue.js 3 complet
429
+ - [x] Centralisation du logging (Architecture IoC, découplage total)
406
430
 
407
431
  ### v1.2 (T2 2025)
408
432
  - [ ] Presets de configuration (templates de démarrage)
@@ -411,13 +435,11 @@ npm run build
411
435
  - [ ] Assistant de résolution de conflits
412
436
 
413
437
  ### v2.0 (T3 2025)
414
- - [ ] Support Next.js
415
438
  - [ ] Support Remix
416
439
  - [ ] Support Astro
417
440
  - [ ] Interface web pour la configuration
418
441
 
419
442
  ### v2.x (Futur)
420
- - [ ] Support Vue 3
421
443
  - [ ] Support Svelte
422
444
  - [ ] Support React Native
423
445
  - [ ] Templates de plugins personnalisés
package/README.md CHANGED
@@ -178,10 +178,11 @@ ConfigJS prevents conflicts before they happen:
178
178
  - ✅ **Auto-Dependencies**: TailwindCSS requires PostCSS → installed automatically
179
179
  - ✅ **Plugin Tracking**: Remembers installed plugins (`.configjsrc`)
180
180
 
181
- ### 📦 Supported Libraries (40+ Plugins)
181
+ ### 📦 Supported Libraries (44+ Plugins)
182
182
 
183
183
  #### 🎨 CSS / Styling
184
184
  - TailwindCSS v4 (with @tailwindcss/vite)
185
+ - TailwindCSS Next.js
185
186
  - Styled Components
186
187
  - React Bootstrap
187
188
  - Emotion
@@ -190,50 +191,69 @@ ConfigJS prevents conflicts before they happen:
190
191
  #### 🧭 Routing
191
192
  - React Router v7
192
193
  - TanStack Router
194
+ - Vue Router (Vue.js)
193
195
 
194
196
  #### 🗂️ State Management
195
197
  - Redux Toolkit
196
198
  - Zustand
197
199
  - Jotai
198
- - MobX
200
+ - Pinia (Vue.js)
199
201
 
200
202
  #### 🌐 HTTP Client
201
203
  - Axios
202
204
  - TanStack Query (React Query)
205
+ - TanStack Query Vue
203
206
  - Fetch Wrapper
204
207
 
205
208
  #### 📝 Forms
206
209
  - React Hook Form
207
- - Formik
208
210
  - Zod (validation)
209
211
  - Yup (validation)
210
212
 
211
213
  #### 🎨 UI Components
212
214
  - Shadcn/ui
215
+ - Shadcn/ui Next.js
213
216
  - Radix UI
214
217
  - React Icons
215
218
  - Lucide Icons
216
219
  - React Hot Toast
220
+ - React Hot Toast Next.js
221
+ - Vuetify (Vue.js)
217
222
 
218
223
  #### 🧪 Testing
219
224
  - React Testing Library
225
+ - Vue Test Utils
226
+ - Vue Testing Library
220
227
  - Vitest
221
228
  - Jest
222
229
 
223
230
  #### 🛠️ Tooling
224
231
  - ESLint
232
+ - ESLint Vue
225
233
  - Prettier
226
234
  - Husky (Git hooks)
235
+ - commitlint
227
236
  - lint-staged
228
237
  - date-fns
238
+ - Vue TSC
229
239
 
230
240
  #### ✨ Animation
231
241
  - Framer Motion
232
242
  - React Spring
233
243
 
234
244
  #### 🔧 Utils
235
- - Lodash
236
- - clsx / classnames
245
+ - VueUse (Vue.js)
246
+ - unplugin-auto-import (Vue.js)
247
+ - unplugin-vue-components (Vue.js)
248
+
249
+ #### 🌍 Internationalization
250
+ - Vue i18n (Vue.js)
251
+
252
+ #### 📸 Next.js Specific
253
+ - Image Optimization
254
+ - Font Optimization
255
+ - API Routes
256
+ - Middleware
237
257
 
238
258
  ### 🔄 Automatic Rollback
239
259
 
@@ -423,7 +443,7 @@ npm run build
423
443
 
424
444
  ## 📋 Requirements
425
445
 
426
- - **Node.js** ≥ 18.0.0
446
+ - **Node.js** ≥ 20.0.0
427
447
  - **npm** / **yarn** / **pnpm** / **bun**
428
448
  - An existing React project (Vite, CRA, or custom setup)
429
449
 
@@ -436,7 +456,11 @@ npm run build
436
456
  - [x] Plugin detection (package.json + tracker)
437
457
  - [x] Enhanced console UX with colors
438
458
  - [x] Sequential installation (prevents corruption)
439
- - [x] 40+ plugins across 10 categories
459
+ - [x] Full React support (React 18/19)
460
+ - [x] 44+ plugins across 10 categories
461
+ - [x] Full Next.js support (13/14/15)
462
+ - [x] Full Vue.js 3 support
463
+ - [x] Logging centralization (IoC Architecture, full decoupling)
440
464
 
441
465
  ### v1.2 (Q2 2025)
442
466
  - [ ] Configuration presets (starter templates)
@@ -445,13 +469,11 @@ npm run build
445
469
  - [ ] Conflict resolution wizard
446
470
 
447
471
  ### v2.0 (Q3 2025)
448
- - [x] Support Next.js ✅
449
472
  - [ ] Support Remix
450
473
  - [ ] Support Astro
451
474
  - [ ] Web UI for configuration
452
475
 
453
476
  ### v2.x (Future)
454
- - [ ] Support Vue 3
455
477
  - [ ] Support Svelte
456
478
  - [ ] React Native support
457
479
  - [ ] Custom plugin templates
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  CompatibilityValidator,
3
3
  allCompatibilityRules
4
- } from "./chunk-NLTJ6GYH.js";
4
+ } from "./chunk-ATUTE7PE.js";
5
5
  import {
6
6
  pluginRegistry
7
- } from "./chunk-HKNOLXCV.js";
8
- import "./chunk-MQV3WNMH.js";
7
+ } from "./chunk-6WWDHX4E.js";
8
+ import "./chunk-6GV4NKUX.js";
9
+ import "./chunk-FIB2J36N.js";
9
10
  import {
10
11
  logger
11
- } from "./chunk-HM2JWJOO.js";
12
+ } from "./chunk-QPEUT7QG.js";
12
13
  import "./chunk-QGM4M3NI.js";
13
14
 
14
15
  // src/cli/commands/check.ts
@@ -1,12 +1,13 @@
1
1
  import {
2
- logger
3
- } from "./chunk-HM2JWJOO.js";
2
+ getModuleLogger
3
+ } from "./chunk-QPEUT7QG.js";
4
4
 
5
5
  // src/utils/package-manager.ts
6
6
  import { execa } from "execa";
7
7
  import fs from "fs-extra";
8
8
  import { resolve, join } from "path";
9
- async function detectPackageManager(projectRoot) {
9
+ var logger = getModuleLogger();
10
+ async function detectPackageManager(projectRoot, fsAdapter) {
10
11
  const root = resolve(projectRoot);
11
12
  const lockfiles = [
12
13
  { file: "pnpm-lock.yaml", manager: "pnpm" },
@@ -16,6 +17,13 @@ async function detectPackageManager(projectRoot) {
16
17
  ];
17
18
  for (const { file, manager } of lockfiles) {
18
19
  const lockfilePath = join(root, file);
20
+ if (fsAdapter) {
21
+ if (await fsAdapter.pathExists(lockfilePath)) {
22
+ logger.debug(`Detected package manager: ${manager} (found ${file})`);
23
+ return manager;
24
+ }
25
+ continue;
26
+ }
19
27
  if (await fs.pathExists(lockfilePath)) {
20
28
  logger.debug(`Detected package manager: ${manager} (found ${file})`);
21
29
  return manager;