React项目启动与构建

React项目启动与构建

在项目目录下,可通过以下命令执行操作:

  • yarn start:在开发模式下运行应用程序。浏览器会自动打开并展示应用界面。编辑代码后,页面会自动重新加载,控制台中会显示代码检查错误信息。
  • yarn test :启动交互式测试运行程序。
  • yarn build:将应用程序构建到build文件夹,用于生产环境部署。构建过程会优化React代码,以获得最佳性能。构建后的文件包含哈希值,应用可直接部署。
  • yarn eject:移除项目对create-react-app构建工具的依赖。请谨慎操作,这是一个单向操作,执行后无法恢复。
zip
bruno-games-master.zip 预估大小:22个文件
folder
bruno-games-master 文件夹
file
.gitignore 310B
file
package.json 815B
folder
src 文件夹
file
index.js 236B
folder
utils 文件夹
file
percent.js 158B
folder
Components 文件夹
folder
App 文件夹
file
App.js 889B
file
App.style.js 177B
folder
mocks 文件夹
file
games.json 1KB
folder
OfferList 文件夹
file
OfferList.style.js 275B
file
OfferList.jsx 645B
folder
OfferCard 文件夹
file
OfferCard.jsx 903B
file
OfferCard.style.js 1KB
folder
CartShopping 文件夹
file
CardShopping.style.js 198B
file
CartShopping.jsx 301B
file
index.css 277B
folder
public 文件夹
file
robots.txt 67B
file
logo192.png 5KB
file
index.html 2KB
file
favicon.ico 4KB
file
manifest.json 492B
file
logo512.png 9KB
file
README.md 3KB
file
yarn.lock 495KB
zip 文件大小:216.05KB