1. .dockerignore //打包忽略项目
    2. .editorconfig
    3. .env //配置变量
    4. .gitignore
    5. .prettierrc
    6. config-overrides.js //扩展webpack
    7. Dockerfile
    8. LICENSE
    9. package.json
    10. README.md
    11. tsconfig.json
    12. yarn.lock
    13. ├─.vscode
    14. launch.json
    15. settings.json
    16. ├─public
    17. config.js
    18. favicon.ico
    19. get_env.sh
    20. index.html
    21. manifest.json
    22. robots.txt
    23. ├─server
    24. └─config
    25. default.conf //默认nginx配置
    26. http.conf //默认nginx配置,也是作为http访问的配置备份
    27. https.conf //https配置,需要时可替换default.conf
    28. mime.types
    29. ├─cert
    30. readme.md //此处存放证书文件,key和pem
    31. ├─logs
    32. app.error.log
    33. app.log
    34. └─rewrite
    35. app.rewrite.conf //重定向配置
    36. └─src
    37. a.module.less
    38. App.css
    39. App.tsx
    40. index.css
    41. index.tsx
    42. oldApp.tsx
    43. react-app-env.d.ts
    44. serviceWorker.ts
    45. setupProxy.js
    46. ├─biz //业务文件夹
    47. └─todolist //业务组件
    48. todoControl.tsx
    49. todoList.tsx
    50. todoPage.tsx
    51. └─service //某个业务服务,私有属性,尽量避免私有属性复用
    52. todoAction.ts
    53. todoReducers.ts
    54. todoTypes.ts
    55. ├─page //早期版本可能使用router(.router)命名
    56. todo.page.tsx //业务路由 以.page命名
    57. ├─store //redux服务
    58. index.ts
    59. ├─actions
    60. index.ts
    61. ├─reducers
    62. index.tsx
    63. └─types
    64. index.ts
    65. └─utils //工具类
    66. handleAuthToken.ts //本地token检查
    67. http.ts //axios拦截
    68. privateRoutes.tsx //私有路由处理