Refactor ClientApp part dependencies and infrastructures. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi 我來發 PR 了!
這邊用了三個 commit 做 Refactor 整個 ClientApp 架構,以大方向來說切成以下幾個方向
react-script
require
與module.exports
語法,而 src 部份都是 React 所以全走import
與export default
語法)以上修改我都有跑過
$ npm start
,$ npm build
,$ npm test:coverage
,$ npm test:watch
,$ npm lint:check
,$ npm lint:fix
and$ npm format
的測試沒問題。另外
如果你在跑 test 發現有 'open too many files .... ' 之類的錯誤,請使用 brew 安裝 watchman
相關 reference: facebook/create-react-app#4540
最後
這裡面貌似還有相依 event-stream 3.3.6 的 package,所以我直接使用 npm install 會死掉,這個部分再請你修改了!
如果有任何問題請再告訴我,謝謝!