Up and Running with Facebook Flow for Typed JavaScript

InstructorJosh Black

Share this video with your friends

Send Tweet

Let's learn how to set up Facebook's Flow inside of a project and write a simple typecheck task that will let us run Flow against any files in our codebase.

RichardForrester
~ 8 years ago

You should append ; exit 0 to your npm script to suppress the unnecessary error messages.

Damian Joniec
~ 5 years ago

I know you are using vim but how to go to flow (stuff what happens at 0:15) using normal power shell and webstorm or vscode?

When I try to follow those instruction in power shell I get those errors: PS C:\Users\DamianJoniec\documents\flow-init\node_modules.bin> flow init flow : The term 'flow' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • flow init
  •   + CategoryInfo          : ObjectNotFound: (flow:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Suggestion [3,General]: The command flow was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\flow". See "get-help about_Command_Precedence" for more details. PS C:\Users\DamianJoniec\documents\flow-init\node_modules.bin>