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

Create React App v2 #849

Merged
merged 6 commits into from
Oct 2, 2018
Merged

Create React App v2 #849

merged 6 commits into from
Oct 2, 2018

Conversation

Fabious
Copy link
Contributor

@Fabious Fabious commented Oct 1, 2018

create-react-app is very soon to be updated to version 2, and adds really cool features, as you can see here : facebook/create-react-app#5103

This PR is meant for api-platform to be ready for it

I used $ yarn add --exact react-scripts@2.0.1

@@ -9,12 +9,12 @@
"react-dom": "^16.3.0"
},
"devDependencies": {
"react-scripts": "^1.1.0"
"react-scripts": "2.0.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep the ^ syntax for both package.json files. It will make the maintenance easier on our side.

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait for the release before merging it.

},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
},
"browserslist": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we keep this ? it's added since create-react-app v2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please!

@dunglas dunglas merged commit c732417 into api-platform:master Oct 2, 2018
@dunglas
Copy link
Member

dunglas commented Oct 2, 2018

Thanks @Fabious! Great job.

@Fabious Fabious deleted the migrate-react-scripts branch October 3, 2018 06:57
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.

None yet

2 participants