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

Add flow typechecking as a webpack plugin #1854

Closed
wants to merge 33 commits into from

Conversation

Gregoor
Copy link

@Gregoor Gregoor commented Mar 18, 2017

Based on this PR by @rricard but without adding flow-typed to the gitignore.

This will not process them for now...
This result will not be used for serving the pages but will be used for tracking lint/type errors in those files
This will only run if a @flow annotation is seen:
- At the first @flow file found:
  - Write a .flowconfig if none exists
  - [Not done yet] Run flow-typed install
  - [Not done yet] Start a flow instance
- When a file with an @flow comment changes during a compilation:
  - [Not done yet] Run a flow check
  - If there are some errors in flow:
    - If CI: output as an error
    - If not CI: output as a warning
We don't need complex logic with process.env on the plugin side, we let the build script figure this out!
If a mismatch occurs, the DX will be bad, we should tell it to the user
# Conflicts:
#	packages/react-dev-utils/package.json
#	packages/react-scripts/config/webpack.config.dev.js
rricard and others added 3 commits December 9, 2016 20:53
# Conflicts:
#	packages/react-scripts/config/webpack.config.dev.js
#	packages/react-scripts/config/webpack.config.prod.js
@Timer
Copy link
Contributor

Timer commented Apr 22, 2017

Hey @Gregoor! I appreciate the initiative here, but I think we're going to try to keep most things in #1152.
Since you signed the CLA, I'll go ahead and cherry-pick your commit over there.

Thanks!

@Timer Timer closed this Apr 22, 2017
@Gregoor
Copy link
Author

Gregoor commented Apr 22, 2017

Sure, thanks. Whatever keeps the ball rolling :)

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants