빠른 시작
단일 파일 트랜스파일
섹션 제목: “단일 파일 트랜스파일”# stdout 출력zntc hello.ts
# 파일로 출력zntc hello.ts -o hello.js디렉토리 트랜스파일
섹션 제목: “디렉토리 트랜스파일”zntc src/ --outdir dist/번들링
섹션 제목: “번들링”# 단일 번들zntc --bundle src/index.ts -o dist/bundle.js
# 코드 스플리팅zntc --bundle src/index.ts --splitting --outdir dist/
# 라이브러리 빌드 (모듈 구조 유지)zntc --bundle src/index.ts --preserve-modules --outdir dist/Minify
섹션 제목: “Minify”zntc --bundle src/index.ts -o dist/bundle.js --minify소스맵
섹션 제목: “소스맵”zntc --bundle src/index.ts -o dist/bundle.js --sourcemapWatch 모드
섹션 제목: “Watch 모드”zntc --bundle src/index.ts -o dist/bundle.js --watchDev Server
섹션 제목: “Dev Server”# 정적 파일 서빙zntc --serve
# 번들 + HMRzntc --serve --bundle src/index.ts앱 빌더
섹션 제목: “앱 빌더”Vite 스타일의 index.html 앱은 zntc dev / zntc build를 사용합니다.
<link rel="stylesheet" href="/src/style.css" /><script type="module" src="/src/main.ts"></script># HTML/env/public prepare + bundle + CSS HMRzntc dev
# dist/에 빌드 산출물 쓰기zntc build앱 root에 postcss.config.*가 있으면 dev와 build 모두 CSS에 적용됩니다.
Tailwind v4는 @tailwindcss/postcss로 설정합니다.