@axyl-tcb/create-template 1.0.19 → 1.0.21

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/lib/scaffold.js CHANGED
@@ -145,7 +145,9 @@ function scaffold(projectName, targetDir, templateDir, options = {}) {
145
145
  */
146
146
  function installDependencies(targetDir) {
147
147
  try {
148
- execSync('npm install', { cwd: targetDir, stdio: 'inherit' });
148
+ // --no-audit/--no-fund: 스캐폴딩 직후 화면에 npm audit(@cloudbase 전이 취약점)·
149
+ // funding 안내가 뜨면 신입이 불필요하게 놀라므로 억제한다(별도로 안내·문서화함).
150
+ execSync('npm install --no-audit --no-fund', { cwd: targetDir, stdio: 'inherit' });
149
151
  return true;
150
152
  } catch {
151
153
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axyl-tcb/create-template",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Axyl TCB Cloud Function 프로젝트 스캐폴딩 CLI (npm create @axyl-tcb/template)",
5
5
  "bin": {
6
6
  "create-template": "bin/index.js"
@@ -6,6 +6,13 @@ TCB Cloud Function 실 환경 테스트 가이드입니다.
6
6
 
7
7
  ## CLI invoke 사용 방법 (실 환경, TCB 배포 필요)
8
8
 
9
+ > **사전 준비 — TCB(CloudBase) CLI** — `tcb` 명령은 최초 1회 설치·로그인이 필요합니다.
10
+ >
11
+ > ```bash
12
+ > npm i -g @cloudbase/cli # tcb 명령 설치
13
+ > tcb login # Tencent Cloud 계정 인증
14
+ > ```
15
+
9
16
  Windows 에서는 아래 명령어를 그대로 터미널에 붙여넣어 사용하세요.
10
17
 
11
18
  > **사전 준비 — invoke 전 반드시 빌드 + 배포**
@@ -189,6 +189,16 @@ npm test
189
189
 
190
190
  ### 4. 빌드 + 배포
191
191
 
192
+ 배포에는 **TCB(CloudBase) CLI** 가 필요합니다. 최초 1회 설치·로그인하세요.
193
+
194
+ ```bash
195
+ npm i -g @cloudbase/cli # tcb 명령 설치
196
+ tcb login # Tencent Cloud 계정 인증 (최초 1회)
197
+ tcb -v # 설치 확인
198
+ ```
199
+
200
+ 배포 대상 환경은 `cloudbaserc.json` 의 `envId` 값으로 지정됩니다.
201
+
192
202
  ```bash
193
203
  npm run deploy:build # 빌드 + 전체 배포
194
204
  npm run deploy # 빌드 없이 전체 배포