我如何告诉 Codeship 忽略 node_modules 文件夹?

How do I tell Codeship to ignore the node_modules folder?

我正在从 Codeship 部署到 AWS EB。 Codeship 进行了 npm install 到 运行 的测试。他们将所有内容捆绑在一起并将其发送到 AWS,然后另一个 npm install 发生了。

如何防止 Codeship 捆绑我的 node_modules 文件夹?

集成的 Elastic Beanstalk 部署基于将文件复制到 AWS,因此如果您想要 "ignore" 一个文件夹,请在 Elastic Beanstalk 部署之前添加基于脚本的部署并删除您不需要的文件夹不想抄过来。

请参阅 https://github.com/codeship/scripts/blob/master/deployments/elastic_beanstalk.sh 以获取与集成部署的命令 运行 非常相似(尽管不完全相同)的脚本。

有关包含多个单独步骤的部署管道的更多信息,请参阅 https://documentation.codeship.com/basic/builds-and-configuration/deployment-pipelines/#multi-step-deployment-pipelines