npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@axyl-tcb/create-template

v1.0.26

Published

Axyl TCB Cloud Function 프로젝트 스캐폴딩 CLI (npm create @axyl-tcb/template)

Readme

@axyl-tcb/create-template

npm create @axyl-tcb/template 명령으로 Axyl TCB Cloud Function 프로젝트를 스캐폴딩하는 CLI 패키지입니다.

사용법

npm create @axyl-tcb/template <project-name>

공개 npm 패키지이므로 별도 레지스트리 설정이나 인증이 필요 없습니다.

실행하면 테스트 파일 포함 여부를 묻습니다.

테스트 파일(예제·테스트·DB 셋업)을 포함하시겠습니까? (Y/n)

| 선택 | 생성 내용 | |---|---| | Y (기본) | 테마별 예제 함수 + 테스트 + DB 셋업 함수(createTables/createCollections) + INVOKE.md 포함 | | N | basic/index.ts 기본 핸들러 + lib + 문서만. 예제·테스트·셋업·INVOKE.md 제외 |

스캐폴딩 후 의존성(npm install)은 자동 설치됩니다.

cd <project-name>
cp .env.example .env   # DB 연결 정보 입력
npm test               # (테스트 포함 시)

비대화형(CI) 또는 명시 지정용 플래그:

npm create @axyl-tcb/template <project-name> -- --tests       # 테스트 포함 강제
npm create @axyl-tcb/template <project-name> -- --no-tests    # 최소 구성
npm create @axyl-tcb/template <project-name> -- --no-install  # 자동 설치 생략

플래그 미지정 + 비대화형 환경에서는 테스트 포함(Y) 이 기본입니다.


패키지 구조

axyl-tcb-template/
├── bin/
│   └── index.js          # CLI 진입점
├── lib/
│   └── scaffold.js       # validateProjectName / scaffold / pruneTestArtifacts / installDependencies
├── template/             # 스캐폴딩 소스 (npm publish 에 포함)
│   ├── src/functions/    # basic / mysql / storage / docdb (테마별)
│   ├── src/lib/          # db · storage · docdb
│   ├── test/             # basic / mysql / storage / docdb / lib (테마별)
│   ├── scripts/deploy.js
│   ├── _gitignore        # scaffold 시 .gitignore 로 변환
│   ├── cloudbaserc.json · package.json · tsconfig.json · vitest.config.ts
│   └── README.md · MYSQL.md · STORAGE.md · DOCDB.md · INVOKE.md
└── test/
    ├── scaffold.test.js  # validateProjectName / copyDir / scaffold 단위 테스트
    └── cli.test.js       # bin/index.js 통합 테스트 (포함/미포함 스캐폴드)

개발 가이드

의존성 설치

npm install                  # CLI 테스트용 (vitest)
npm run template:install     # template/ 의존성 설치

테스트

npm test                     # CLI 단위 + 통합 테스트 (scaffold.test.js, cli.test.js)
npm run template:test        # template/ 핸들러 + db 테스트

template 소스 수정

template/ 안에서 직접 편집합니다.

npm run template:test        # 변경 내용 검증
npm run template:build       # esbuild 번들링 확인

배포

npm version patch            # 버전 업
npm publish                  # npmjs.com 공개 배포 (access public)

미들웨어(@axyl-tcb/middleware)와의 배포 순서, 버전 규칙, 인증 설정 등 전체 릴리스 절차는 PUBLISHING.md 를 참고하세요.


생성되는 프로젝트에 대한 안내

스캐폴딩된 프로젝트의 사용법은 생성된 디렉토리 안의 README.md 를 참고하세요.