有一个文件叫 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 calledCI
.When creating a build of your application with
npm run build
linter warnings are not checked by default. Likenpm test
, you can force the build to perform a linter warning check by setting the environment variableCI
. If any warnings are encountered then the build fails.[...]
关于reactjs - "Export CI=true"在这个 create-react-app 部署脚本中做了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50930044/