create-vite-react-boot 1.0.17 → 1.0.18
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/bin/cli.js +18 -11
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -6,8 +6,8 @@ import prompts from "prompts";
|
|
|
6
6
|
import spawn from "cross-spawn"; // 크로스플랫폼 스폰
|
|
7
7
|
import { green, yellow, red, cyan, bold } from "kolorist";
|
|
8
8
|
import { applyScaffold } from "../lib/apply.js";
|
|
9
|
+
import readline from "node:readline"; // ← 진행바 렌더링용
|
|
9
10
|
|
|
10
|
-
import readline from "node:readline";
|
|
11
11
|
|
|
12
12
|
function formatHMS(s) {
|
|
13
13
|
const m = Math.floor(s / 60).toString().padStart(2, "0");
|
|
@@ -457,20 +457,27 @@ export default function App(){
|
|
|
457
457
|
|
|
458
458
|
// ─────────────────────────────────────────────
|
|
459
459
|
// 2) 1회 설치 (조용히 설치: fund/audit 등 장황 로그 숨김)
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
// ─────────────────────────────────────────────
|
|
461
|
+
console.log(yellow(`\n▶ 의존성 설치 중입니다. 잠시만 기다려주세요…\n`));
|
|
462
462
|
|
|
463
463
|
|
|
464
464
|
// 패키지 매니저별 silent 옵션
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
465
|
+
const silentFlag =
|
|
466
|
+
pm === "npm" ? "--silent" :
|
|
467
|
+
pm === "yarn" ? "--silent" :
|
|
468
|
+
pm === "pnpm" ? "--silent" : "";
|
|
469
|
+
|
|
470
|
+
// CI 환경이면 npm은 ci 사용, 아니면 install
|
|
471
|
+
const isCI = process.env.CI === "true";
|
|
472
|
+
const args =
|
|
473
|
+
pm === "npm"
|
|
474
|
+
? [isCI ? "ci" : "install", ...(silentFlag ? [silentFlag] : [])]
|
|
475
|
+
: ["install", ...(silentFlag ? [silentFlag] : [])];
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
await runWithProgress(pm, args, { cwd: target }, "의존성 설치");
|
|
473
479
|
|
|
480
|
+
console.log(green(" → 의존성 설치 완료!\n"));
|
|
474
481
|
// ─────────────────────────────────────────────
|
|
475
482
|
// 3) 인증/라우팅/axios/Tailwind 추가 파일 (파일만 생성, 설치 없음)
|
|
476
483
|
// ─────────────────────────────────────────────
|