Closed plouc closed 7 years ago
https://github.com/facebookincubator/create-react-app/issues/2811
Create React App
eject
Survey
https://docs.google.com/forms/d/e/1FAIpQLSfgwnbHqm6KIeROEdE6kqpbQQy9iV8BXJ3CXD5G9n8inPoyAQ/viewform
Hi! Sorry this never got answered, so I'll close this as outdated.
Your approach sounds fine though. 😄
Hi,
I'm currently working on Mozaïk v2. Instead of the previous manual config for the UI, I'm willing to move to CRA (as I did for most of my projects, thanks a lot!).
I was wondering if you could provide some advice regarding installation, here's the workflow I've got in mind:
@mozaik/cli
globallymozaik create my-dashboard
react-scripts
&package.json
scripts
are installed with extra Mozaïk related packages.(yarn|npm) start
(customized to also launch the Mozaïk server)(yarn|npm) build
to build the UI and optionally build a Docker imageFor now I've copied some logic from this
createReactApp.js
script (create-react-app/packages/create-react-app/createReactApp.js
) and customized it to install bothreact-scripts
& Mozaïk stuff.