这是一个脚手架,项目目的是用 nodejs+typescript 创建一个空项目
支持使用create-app-git命令一键安装。create-app-git init node-ts-template或者npx create-app-git init node-ts-template
dev开发模式,执行启动就好,默认端口 8082build编译 ts 文件到 jsstart启动编译好的 js 文件
- 执行
npm run build生成可执行文件 - 使用守护进程启动项目。根目录下有 pm2 的配置文件
pm2 start pm2.json