vibe-now 1.0.0 → 1.0.1

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 (3) hide show
  1. package/README.md +15 -0
  2. package/package.json +6 -2
  3. package/plopfile.js +15 -0
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A premium, interactive CLI wizard for scaffolding modern Next.js applications with a perfectly curated stack. Stop running manual `npm install` commands and start building within seconds.
4
4
 
5
+ <img width="3680" height="4144" alt="Terminal" src="https://github.com/user-attachments/assets/4a6e97c4-778b-432f-8fe0-46f1193aa543" />
6
+
5
7
  ## ✨ Features
6
8
 
7
9
  - **Interactive Wizard**: A beautiful CLI experience powered by Plop.js and Inquirer.
@@ -78,6 +80,19 @@ The CLI uses a group-based configuration for easy maintenance. To add a new libr
78
80
  }
79
81
  ```
80
82
 
83
+ ### 4. Adding New Templates
84
+ The wizard currently generates `README.md` and `AGENTS.md` automatically. To add a new template:
85
+ 1. Create a Handlebars file in the `templates/` directory (e.g., `templates/CONFIG.md.hbs`).
86
+ 2. Open `plopfile.js`.
87
+ 3. Locate the `// 3. Generate README and AGENTS files` section.
88
+ 4. Add your new template read and write logic:
89
+
90
+ ```javascript
91
+ const myTmpl = fs.readFileSync(path.join(__dirname, 'templates/CONFIG.md.hbs'), 'utf8');
92
+ const renderedMy = plop.renderString(myTmpl, templateData);
93
+ fs.writeFileSync(path.join(projectPath, 'CONFIG.md'), renderedMy);
94
+ ```
95
+
81
96
  ---
82
97
 
83
98
  ## 📦 Publishing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-now",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,6 +9,10 @@
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/mosster/vibe-now.git"
15
+ },
12
16
  "keywords": [],
13
17
  "author": "Ed Moss <ed@mossified.com>",
14
18
  "license": "ISC",
@@ -21,4 +25,4 @@
21
25
  "ora": "^9.0.0",
22
26
  "plop": "^4.0.4"
23
27
  }
24
- }
28
+ }
package/plopfile.js CHANGED
@@ -173,6 +173,21 @@ export default function (plop) {
173
173
  console.error(error);
174
174
  }
175
175
 
176
+ // 4. Calculate project weight (node_modules size)
177
+ const statsSpinner = ora({
178
+ text: 'Calculating project weight...',
179
+ color: 'green',
180
+ }).start();
181
+
182
+ try {
183
+ const { stdout } = await execa('du', ['-sh', 'node_modules'], { cwd: projectPath });
184
+ const size = stdout.split('\t')[0];
185
+ statsSpinner.succeed(`Project weight: ${size} (node_modules)`);
186
+ } catch (error) {
187
+ statsSpinner.stop();
188
+ // Fail silently if du is not available
189
+ }
190
+
176
191
  return 'All selected packages installed and initialized';
177
192
  },
178
193
  });