TypeScript_Docker

时间:2024-03-04 04:07:58
【文件属性】:

文件名称:TypeScript_Docker

文件大小:16.92MB

文件格式:ZIP

更新时间:2024-03-04 04:07:58

Dockerfile

我需要nodemon要做的是检测任何Typescript文件中的更改,然后发出命令重新编译文件,然后运行app.js文件。 下面是我能够使其工作的方式。 "nodemon -e ts --exec \"tsc && node ./dist/index.js\"" -e: 这指定了我们希望nodemon注意的文件扩展名。 在这种情况下,文件以.ts结尾 --exec: 这将运行一个非节点脚本,因此在这种情况下,我们将运行以下内容: tsc && node ./dist/index.js tsc: 查看您的tsconfig.json,它将在src文件夹中的所有文件上运行typescript,然后将其输出到dist文件夹 节点./dist/index.js: 然后,我们将在dist文件夹中新更新的index.js文件上运行node 绑定挂载和卷 与卷相比,绑定安装的功能有限。 使用绑


网友评论