create-better-system 1.0.2 → 1.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.
- package/index.js +11 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -252,6 +252,14 @@ const rootPkg = await fs.readJson(rootPkgPath)
|
|
|
252
252
|
rootPkg.name = projectName
|
|
253
253
|
await fs.writeJson(rootPkgPath, rootPkg, { spaces: 2 })
|
|
254
254
|
|
|
255
|
+
// ─── Git init ─────────────────────────────────────────────────────────────────
|
|
256
|
+
|
|
257
|
+
console.log('🗂️ Initializing git repository...')
|
|
258
|
+
|
|
259
|
+
await execa('git', ['init'], { cwd: projectPath })
|
|
260
|
+
await execa('git', ['add', '.'], { cwd: projectPath })
|
|
261
|
+
await execa('git', ['commit', '-m', 'init: better system'], { cwd: projectPath })
|
|
262
|
+
|
|
255
263
|
// ─── Done ─────────────────────────────────────────────────────────────────────
|
|
256
264
|
|
|
257
265
|
console.log(`\n✅ Project "${projectName}" created!`)
|
|
@@ -264,4 +272,6 @@ if (isBoth) {
|
|
|
264
272
|
console.log(`\nNext steps:`)
|
|
265
273
|
console.log(` cd ${projectName}`)
|
|
266
274
|
console.log(` pnpm install`)
|
|
267
|
-
console.log(` pnpm dev
|
|
275
|
+
console.log(` pnpm dev`)
|
|
276
|
+
console.log(`\nTo push to GitHub:`)
|
|
277
|
+
console.log(` gh repo create ${projectName} --private --source=. --push\n`)
|