reactjs - "Export CI=true"在这个 create-react-app 部署脚本中做了什么?

标签 reactjs jenkins deployment create-react-app

有一个文件叫 launch.sh在我们的 Create React App 中,用于将内容发布到 CDN。其中一行说 export CI=true .我不知道在这种情况下“CI”是什么意思,以及它的作用。

最佳答案

一如既往地阅读文档:
https://facebook.github.io/create-react-app/docs/running-tests#continuous-integration

Continuous Integration

By default npm test runs the watcher with interactive CLI. However, you can force it to run tests once and finish the process by setting an environment variable called CI.

When creating a build of your application with npm run build linter warnings are not checked by default. Like npm test, you can force the build to perform a linter warning check by setting the environment variable CI. If any warnings are encountered then the build fails.

[...]

关于reactjs - "Export CI=true"在这个 create-react-app 部署脚本中做了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50930044/

相关文章:

javascript - 评级明星列表的好关键 Prop

docker - 通过 jenkins 用新建的镜像重启 Docker 容器(在容器中运行)

azure - 在 Azure 应用服务上运行部署后操作

java - 如何通过发送电子邮件来启动java程序

jenkins - 如何在某个分支中推送时设置 github webhook 触发器

iis - 什么是Windows上网站的良好部署工具?

asp.net-mvc - NLog上的配置转换不起作用

reactjs - React/Redux 在哪里设置 sessionStorage

reactjs - React Hook 异步等待如何保持渲染 promise

javascript - Redux Action 和模态窗口