@chimerai/cli 0.2.79 → 0.2.80

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.
@@ -213,12 +213,14 @@ async function createProject(targetDir, projectName, features, sqlite) {
213
213
  // 7. Create seed script
214
214
  spinner.text = 'Creating database seed...';
215
215
  await createSeedScript(targetDir, features, sqlite);
216
- // 8. Create Docker Compose
217
- spinner.text = 'Setting up Docker...';
218
- await createDockerCompose(targetDir);
216
+ // 8. Create Docker Compose (only for PostgreSQL)
217
+ if (!sqlite) {
218
+ spinner.text = 'Setting up Docker...';
219
+ await createDockerCompose(targetDir);
220
+ }
219
221
  // 9. Create install scripts
220
222
  spinner.text = 'Creating install scripts...';
221
- await createInstallScripts(targetDir);
223
+ await createInstallScripts(targetDir, sqlite);
222
224
  // 10. Create README
223
225
  spinner.text = 'Creating documentation...';
224
226
  await createReadme(targetDir, projectName, features);
@@ -1417,9 +1419,63 @@ main()
1417
1419
  async function createDockerCompose(targetDir) {
1418
1420
  await fs_extra_1.default.writeFile(path_1.default.join(targetDir, 'docker-compose.yml'), (0, index_js_1.generateDockerComposeDev)());
1419
1421
  }
1420
- async function createInstallScripts(targetDir) {
1422
+ async function createInstallScripts(targetDir, sqlite) {
1421
1423
  // Windows install.bat
1422
- const installBat = `@echo off
1424
+ const installBat = sqlite
1425
+ ? `@echo off
1426
+ REM Installation Script for ChimerAI Project (SQLite)
1427
+ echo.
1428
+ echo ================================================
1429
+ echo ChimerAI Project Setup (SQLite - No Docker needed)
1430
+ echo ================================================
1431
+ echo.
1432
+
1433
+ REM Check Node.js
1434
+ where node >nul 2>nul
1435
+ if %ERRORLEVEL% NEQ 0 (
1436
+ echo [ERROR] Node.js is not installed
1437
+ pause
1438
+ exit /b 1
1439
+ )
1440
+
1441
+ echo [1/3] Installing dependencies...
1442
+ call npm install
1443
+ if %ERRORLEVEL% NEQ 0 (
1444
+ echo [ERROR] Failed to install dependencies
1445
+ pause
1446
+ exit /b 1
1447
+ )
1448
+
1449
+ echo [2/3] Setting up database...
1450
+ call npm run db:push
1451
+ if %ERRORLEVEL% NEQ 0 (
1452
+ echo [ERROR] Failed to setup database
1453
+ pause
1454
+ exit /b 1
1455
+ )
1456
+
1457
+ echo [3/3] Seeding database...
1458
+ call npm run db:seed
1459
+ if %ERRORLEVEL% NEQ 0 (
1460
+ echo [WARNING] Seeding failed, but you can continue
1461
+ )
1462
+
1463
+ echo.
1464
+ echo ================================================
1465
+ echo Setup completed successfully!
1466
+ echo ================================================
1467
+ echo.
1468
+ echo Next steps:
1469
+ echo npm run dev
1470
+ echo Open: http://localhost:3001
1471
+ echo.
1472
+ echo Login with:
1473
+ echo Email: admin@example.com
1474
+ echo Password: admin123
1475
+ echo.
1476
+ pause
1477
+ `
1478
+ : `@echo off
1423
1479
  REM Installation Script for ChimerAI Project
1424
1480
  echo.
1425
1481
  echo ================================================
@@ -1492,7 +1548,46 @@ echo.
1492
1548
  pause
1493
1549
  `;
1494
1550
  // Linux/macOS install.sh
1495
- const installSh = `#!/bin/bash
1551
+ const installSh = sqlite
1552
+ ? `#!/bin/bash
1553
+ set -e
1554
+
1555
+ echo ""
1556
+ echo "================================================"
1557
+ echo " ChimerAI Project Setup (SQLite - No Docker needed)"
1558
+ echo "================================================"
1559
+ echo ""
1560
+
1561
+ # Check Node.js
1562
+ if ! command -v node &> /dev/null; then
1563
+ echo "[ERROR] Node.js is not installed"
1564
+ exit 1
1565
+ fi
1566
+
1567
+ echo "[1/3] Installing dependencies..."
1568
+ npm install
1569
+
1570
+ echo "[2/3] Setting up database..."
1571
+ npm run db:push
1572
+
1573
+ echo "[3/3] Seeding database..."
1574
+ npm run db:seed || echo "[WARNING] Seeding failed, but you can continue"
1575
+
1576
+ echo ""
1577
+ echo "================================================"
1578
+ echo " Setup completed successfully!"
1579
+ echo "================================================"
1580
+ echo ""
1581
+ echo "Next steps:"
1582
+ echo " npm run dev"
1583
+ echo " Open: http://localhost:3001"
1584
+ echo ""
1585
+ echo "Login with:"
1586
+ echo " Email: admin@example.com"
1587
+ echo " Password: admin123"
1588
+ echo ""
1589
+ `
1590
+ : `#!/bin/bash
1496
1591
  set -e
1497
1592
 
1498
1593
  echo ""
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@chimerai/cli",
3
- "version": "0.2.79",
3
+ "version": "0.2.80",
4
4
  "description": "CLI wizard for ChimerAI starter kit — scaffold auth, RBAC, AI chat, billing and more into any Next.js project",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
7
- "chimerai": "./dist/cli.js"
7
+ "chimerai": "dist/cli.js"
8
8
  },
9
9
  "files": [
10
10
  "dist",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "https://github.com/armbur19-collab/chimerai-kickstart.git",
19
+ "url": "git+https://github.com/armbur19-collab/chimerai-kickstart.git",
20
20
  "directory": "packages/cli"
21
21
  },
22
22
  "homepage": "https://chimerai.dev",