[good-first-issue] CLI: cell build --watch · CLI: cell build --watch
Labels: good first issue, help wanted, feature, area:dsl-compiler, priority:medium
Related: Follow-up from #24 · #24 후속 작업
Context · 배경
cell run --watch already re-runs on .cell save (run-watch.ts). There is no equivalent for cell build, so developers must manually re-run build to refresh generated/*.ts.
cell run --watch는 .cell 저장 시 재실행되지만, cell build --watch는 없어 generated/*.ts를 수동으로 다시 빌드해야 합니다.
Goal · 목표
Add --watch to cell build that re-transpiles when the source .cell file changes.
.cell 파일 변경 시 자동으로 다시 transpile하는 cell build --watch를 추가합니다.
Tasks · 작업
Definition of done · 완료 기준
npm run cell:build -- --watch --out generated ../examples/validator.cell
Keeps running; editing and saving validator.cell updates generated/validator.ts. npm test passes.
위 명령이 동작하고, 파일 저장 시 generated/validator.ts가 갱신됨. npm test 통과.
References · 참고
typescript/build.ts
typescript/run-watch.ts — watch/debounce reference
typescript/transpiler.ts — transpileCellFile, defaultBuildOutPath
[good-first-issue] CLI: cell build --watch · CLI: cell build --watch
Labels:
good first issue,help wanted,feature,area:dsl-compiler,priority:mediumRelated: Follow-up from #24 · #24 후속 작업
Context · 배경
cell run --watchalready re-runs on.cellsave (run-watch.ts). There is no equivalent forcell build, so developers must manually re-run build to refreshgenerated/*.ts.cell run --watch는.cell저장 시 재실행되지만,cell build --watch는 없어generated/*.ts를 수동으로 다시 빌드해야 합니다.Goal · 목표
Add
--watchtocell buildthat re-transpiles when the source.cellfile changes..cell파일 변경 시 자동으로 다시 transpile하는cell build --watch를 추가합니다.Tasks · 작업
--watchintypescript/build.ts(reuse debounce pattern fromrun-watch.tsif practical) ·build.ts에--watch파싱transpileCellFile()and write to--out/defaultBuildOutPath· 저장 시 출력 갱신examples/README.mdPhase 3 section · README 문서화Definition of done · 완료 기준
Keeps running; editing and saving
validator.cellupdatesgenerated/validator.ts.npm testpasses.위 명령이 동작하고, 파일 저장 시
generated/validator.ts가 갱신됨.npm test통과.References · 참고
typescript/build.tstypescript/run-watch.ts— watch/debounce referencetypescript/transpiler.ts—transpileCellFile,defaultBuildOutPath