1.1.4 • Published 5 months ago
mindless-copilot-cli v1.1.4
命令
本地测试(开发过程)
// 后端代码生成
npx ts-node -r tsconfig-paths/register ./src/index.ts generate -t backend --dir ../energy-hx-backend
// 前端代码生成
npx ts-node -r tsconfig-paths/register ./src/index.ts generate -t frontend --dir ./examples/react
项目开发过程
- 项目启动,参考 How to Setup a TypeScript + Node.js Project;
- 构建 CLI,参考 Building a TypeScript CLI with Node.js and Commander;
依赖介绍
- ts-node: for running TypeScript code directly without having to wait for it be compiled;
- nodemon: to watch for changes to our code and automatically restart when a file is changed;