@shakil-dev/shakil-stack 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/bin/index.js +9 -1
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -115,7 +115,15 @@ const initProject = async (name) => {
115
115
  cwd: path.join(projectPath, 'frontend'),
116
116
  stdio: 'inherit'
117
117
  });
118
- console.log(chalk.green('✅ shadcn/ui initialized successfully!✨'));
118
+
119
+ console.log(chalk.cyan('📦 Adding common shadcn/ui components...'));
120
+ const commonComponents = ['button', 'card', 'input', 'label', 'textarea', 'dialog', 'dropdown-menu', 'table', 'tabs', 'checkbox'];
121
+ execSync(`npx shadcn@latest add ${commonComponents.join(' ')} -y`, {
122
+ cwd: path.join(projectPath, 'frontend'),
123
+ stdio: 'inherit'
124
+ });
125
+
126
+ console.log(chalk.green('✅ shadcn/ui and common components initialized successfully!✨'));
119
127
  } catch (err) {
120
128
  console.log(chalk.yellow('\n⚠️ Warning: Failed to automate shadcn/ui init. You can run "npx shadcn@latest init" in the frontend folder.'));
121
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakil-dev/shakil-stack",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Full-stack EchoNet-style project generator CLI",
5
5
  "keywords": [
6
6
  "shakil-stack",