Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses create-react-app for the docs #42

Merged
merged 2 commits into from
Mar 6, 2018
Merged

Uses create-react-app for the docs #42

merged 2 commits into from
Mar 6, 2018

Conversation

chrislloyd
Copy link
Contributor

@chrislloyd chrislloyd commented Mar 4, 2018

Context: #13
Depends on: #41

This PR adds create-react-app to manage the build of the docs. It's a faster, better maintained version of what we had already that lets us focus more on writing great docs instead of messing with build configs.

I don't see us using this forever (I think a system like Gatsby is better in the long run) but this was an easy PR and will save some time in the meantime.

Note: I had to downgrade Jest because of an issue with how Jest resolves dependencies. It looks like it's fixed however we need to wait for CRA to update to the version with the fix. Jest 22 provided support for puppeteer, which is a shame to loose but seeing as we're not using it right now I think it's a good tradeoff.

@chrislloyd chrislloyd merged commit de29bb7 into pinterest:master Mar 6, 2018
@gaearon
Copy link

gaearon commented Apr 3, 2018

I published [email protected] which should fix environment.dispose is not a function for you.

https://github.com/facebook/create-react-app/releases/tag/v1.1.3

@chrislloyd chrislloyd deleted the cra-docs branch April 3, 2018 20:04
@chrislloyd
Copy link
Contributor Author

@gaearon you're the best, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants