Flow: Kill Flow server process when webpack dev server exits

Created on 17 Oct 2017  路  5Comments  路  Source: facebook/flow

Hello,

I am using Flow with Babel and Webpack.

When I run the webpack dev server, it will first start the Flow server.

When I exit the webpack dev server, Flow is still running.

This means any time I need to change a Flow-typed interface, I need to close the webpack server, then find and kill the Flow server process.

This is a cumbersome process, and IMO the Flow server should be killed when webpack is.

Sorry, I don't know enough about this to know HOW to go about this.

Most helpful comment

@stevenalanstark Flow and webpack are not related to each other. You may kill flow by youself with killall flow on mac os x.

All 5 comments

@stevenalanstark Flow and webpack are not related to each other. You may kill flow by youself with killall flow on mac os x.

I realize that, but isn't there a way to close the itself if it's spawned by another process that dies? child process?

I don't think Flow can be a child process

@stevenalanstark have you tried something akin to this in your "scripts"?

webpack-dev-server; flow stop

Once webpack-dev-server terminates it will then run flow stop, which will tear down the server. You might also try && insteaad of ; but I don't know if that will work if webpack-dev-server exits with a non-zero error code (a crash, for example).

This probably can be closed.
/cc @vkurchatkin

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Beingbook picture Beingbook  路  3Comments

philikon picture philikon  路  3Comments

jamiebuilds picture jamiebuilds  路  3Comments

tp picture tp  路  3Comments

mmollaverdi picture mmollaverdi  路  3Comments