【文件属性】:
文件名称:react-ci:TL; DR; 此博客文章的申请
文件大小:117KB
文件格式:ZIP
更新时间:2021-03-31 14:09:15
JavaScript
本文的React CI应用程序
主要技术
该项目具有使用GH操作的完全配置的CI。 主分支上的每次PR或推送都会触发运行的CI:
单元测试
端到端测试
ESlint短绒棉
漂亮的格式化程序
并在CodeCov上推动Jest报道。
基本发展风格
该应用程序将用于组件结构。
本地运行
确保您有
git clone git@github.com:vassalloandrea/react-template.git
cd react-template
npm install
npm run start
您的应用程序现在在上运行。
运行测试
该项目使用Jest运行单元测试,并使用Cypress运行E2E。
npm run test:unit
npm run test:e2e
运行短毛猫
该项目使用ESlint和Prettier来检查代码样式。
npm run lint
npm run form
【文件预览】:
react-ci-main
----.eslintrc.json(453B)
----.gitignore(246B)
----package.json(2KB)
----package-lock.json(386KB)
----src()
--------app.test.tsx(240B)
--------templates()
--------organisms()
--------molecules()
--------libs()
--------atoms()
--------app.tsx(218B)
--------__snapshots__()
--------index.tsx(210B)
--------pages()
----webpack.config.js(498B)
----cypress.json(41B)
----jest.config.js(398B)
----public()
--------index.html(391B)
----tsconfig.json(6KB)
----.github()
--------workflows()
----.prettierrc.json(86B)
----README.md(1KB)
----cypress()
--------integration()
--------support()
--------plugins()
--------fixtures()