@configjs/cli 1.1.2 → 1.1.4

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.md CHANGED
@@ -49,13 +49,20 @@ npx @configjs/cli react
49
49
 
50
50
  **No installation required!** Use directly with `npx`:
51
51
 
52
+ ### For React Projects
52
53
  ```bash
53
54
  cd your-react-project
54
55
  npx @configjs/cli react
55
56
  ```
56
57
 
58
+ ### For Next.js Projects
59
+ ```bash
60
+ cd your-nextjs-project
61
+ npx @configjs/cli nextjs
62
+ ```
63
+
57
64
  That's it! ConfigJS will:
58
- 1. 🔍 **Detect** your environment (React version, TypeScript, bundler)
65
+ 1. 🔍 **Detect** your environment (React/Next.js version, TypeScript, bundler)
59
66
  2. 🎯 **Guide** you through library selection by category
60
67
  3. 📦 **Install** all packages sequentially (no conflicts)
61
68
  4. ⚙️ **Configure** everything with working code
@@ -113,9 +120,10 @@ $ npx @configjs/cli react
113
120
  ### 🎯 Smart Detection
114
121
 
115
122
  ConfigJS automatically detects your project setup:
116
- - ✅ **Framework & Version** (React 18/19)
123
+ - ✅ **Framework & Version** (React 18/19, Next.js 13/14)
124
+ - ✅ **Router Type** (App Router vs Pages Router for Next.js)
117
125
  - ✅ **Language** (JavaScript/TypeScript)
118
- - ✅ **Bundler** (Vite, Webpack, Create React App)
126
+ - ✅ **Bundler** (Vite, Webpack, Create React App, Next.js)
119
127
  - ✅ **Package Manager** (npm, yarn, pnpm, bun)
120
128
  - ✅ **Already Installed Libraries** (skips duplicates)
121
129
  - ✅ **Project Structure** (adapts configuration)
@@ -263,9 +271,12 @@ ConfigJS creates a `.configjsrc` file to track installations and prevent conflic
263
271
  ### Commands
264
272
 
265
273
  ```bash
266
- # Interactive installation
274
+ # Interactive installation for React
267
275
  npx @configjs/cli react
268
276
 
277
+ # Interactive installation for Next.js
278
+ npx @configjs/cli nextjs
279
+
269
280
  # List available plugins
270
281
  npx @configjs/cli list
271
282
  npx @configjs/cli list --category routing
@@ -280,6 +291,15 @@ npx @configjs/cli remove <plugin-name>
280
291
  npx @configjs/cli check
281
292
  ```
282
293
 
294
+ ### Next.js Support
295
+
296
+ ConfigJS fully supports Next.js projects with automatic detection of:
297
+ - **App Router** vs **Pages Router**
298
+ - Next.js-specific plugins (Image Optimization, Font Optimization, Middleware, API Routes)
299
+ - Compatible libraries adapted for Next.js (TailwindCSS, Shadcn/ui, React Hot Toast)
300
+
301
+ See [Next.js Documentation](./DOCUMENTATION/NEXTJS.md) for complete guide.
302
+
283
303
  ### CLI Options
284
304
 
285
305
  ```bash
@@ -411,7 +431,7 @@ npm run build
411
431
  - [ ] Conflict resolution wizard
412
432
 
413
433
  ### v2.0 (Q3 2025)
414
- - [ ] Support Next.js
434
+ - [x] Support Next.js
415
435
  - [ ] Support Remix
416
436
  - [ ] Support Astro
417
437
  - [ ] Web UI for configuration
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  CompatibilityValidator,
3
3
  compatibilityRules
4
- } from "./chunk-VJ254HJY.js";
4
+ } from "./chunk-WKYUK64P.js";
5
5
  import {
6
6
  pluginRegistry
7
- } from "./chunk-OJGTPK6N.js";
7
+ } from "./chunk-4VHPGJVU.js";
8
8
  import {
9
9
  logger
10
10
  } from "./chunk-QRFLHLFE.js";