Generate new React App for Admin Next #760
Merged
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.
part of #750
This PR runs the
create-react-app
script to generate a new client along with all the build and development configuration. create-react-app is a project from Facebook to offer an abstracted and opinionated project setup for React applications. It hides away all the low level configuration and enables all the latest and greatest in Javascript development like hot reloading, small image in-lining, code splitting and more. It doesn't lock you in either since you can eject the abstracted configuration if you need to, however this will make updating to new versions harder.For historic context
create-react-app
performs the same role as the Rails asset pipeline does. The main advantage is that it is actively maintained by frontend people instead of more or less being abandoned by backend people. Eventually we'll be able to remove the asset pipeline in this project and have separate toolchains for server and client projects.create-react-app
is nearing version 2 which includes a lot of great stuff but unfortunately its not ready yet. In the past they have provided very clear upgrade instructions. Since we're using typescript we'll also have to wait for the typescript fork to update.cc @patrickkenzie @JRSpencer @RichardBlair