create-next-rkk 1.0.0 → 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/README.md CHANGED
@@ -30,6 +30,7 @@ npx create-next-rkk@latest
30
30
  ```
31
31
 
32
32
  You'll be prompted for:
33
+
33
34
  - Project name
34
35
  - Router type (Pages or App)
35
36
  - TypeScript (yes/no)
@@ -50,11 +51,13 @@ npx create-next-rkk@latest my-app --router app --typescript --install
50
51
  ## 📦 What's Included
51
52
 
52
53
  ### Pages Router Setup
54
+
53
55
  - `_app.tsx` with Web Vitals reporting
54
56
  - `index.tsx` with MetaManager and SmartLink
55
57
  - Pre-configured examples
56
58
 
57
59
  ### App Router Setup
60
+
58
61
  - `layout.tsx` with generateAppMetadata
59
62
  - `page.tsx` with JSON-LD
60
63
  - Modern App Router patterns
package/dist/index.js CHANGED
@@ -87,23 +87,21 @@ program
87
87
  // Step 1: Create Next.js app
88
88
  const spinner = (0, ora_1.default)('Creating Next.js application...').start();
89
89
  try {
90
- const nextFlags = [
91
- '--use-npm',
92
- answers.typescript ? '--typescript' : '--javascript',
93
- answers.router === 'app' ? '--app' : '',
94
- '--no-tailwind',
95
- '--eslint',
96
- '--src-dir',
97
- ].filter(Boolean).join(' ');
98
- (0, child_process_1.execSync)(`npx create-next-app@latest ${targetDir} ${nextFlags} --yes`, { stdio: 'pipe' });
90
+ const createNextAppCmd = answers.typescript
91
+ ? `npx create-next-app@latest ${targetDir} --typescript --eslint --no-tailwind --src-dir --import-alias "@/*"`
92
+ : `npx create-next-app@latest ${targetDir} --javascript --eslint --no-tailwind --src-dir --import-alias "@/*"`;
93
+ (0, child_process_1.execSync)(createNextAppCmd, { stdio: 'inherit' });
99
94
  spinner.succeed('Next.js application created!');
100
95
  // Step 2: Install rkk-next
101
96
  if (answers.installDeps) {
102
97
  spinner.start('Installing rkk-next...');
103
98
  process.chdir(targetDir);
104
- (0, child_process_1.execSync)('npm install rkk-next', { stdio: 'pipe' });
99
+ (0, child_process_1.execSync)('npm install rkk-next', { stdio: 'inherit' });
105
100
  spinner.succeed('rkk-next installed!');
106
101
  }
102
+ else {
103
+ process.chdir(targetDir);
104
+ }
107
105
  // Step 3: Setup template files
108
106
  spinner.start('Setting up rkk-next configuration...');
109
107
  setupTemplateFiles(targetDir, answers.router, answers.typescript);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "create-next-rkk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CLI tool to create Next.js apps with rkk-next pre-configured",
5
5
  "author": "Rohit Kumar Kundu",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
9
- "create-next-rkk": "./dist/index.js"
9
+ "create-next-rkk": "dist/index.js"
10
10
  },
11
11
  "files": [
12
12
  "dist",