humanmade / humanmade/react-wp-scripts

Adding react-wp-scripts to existing CRA + Expo project

Đang mở
#74 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
232
Fork
30
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I am working on a pretty complex project that combines React and React native, as we ship a smartphone app and a web app with the same underlying structure. The web app is implemented as a plugin for a Wordpress website. The project was initially set up using create-react-app and expo.

I would love to be able to speed up our dev progress for the webapp, as building and copying the build over into a local Wordpress environment is tedious and slow. But, I am not entirely sure how to integrate react-wp-scripts into our current setup. Could someone perhaps provide advice on how to use this package with an existing project?

When trying to set up a dummy project to see how it would work, I got this error after yarn installed dependencies (I replaced the real path with ``):
```
Could not locate supplied template: /cra-template
React WP Scripts loader could not be copied to your root folder. Error details:
Error: ENOENT: no such file or directory, open '/src/index.js'
```

Running `npx create-react-app --version` gives me `4.0.3`, is this project not compatible with versions above CRA v2?

Hoping to get a bit of clarification :)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.