Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fastpack/flow_parser

Open more actions menu

Repository files navigation

flow_parser

Flow parser with Fastpack-specific modifications

Upgrading the Flow version

Change version in the Makefile and package.json and run:

$ make clean && make flow

Copy the parser code to lib/:

$ cp -R flow/src/parser/* lib

Manually modify lib/parser_env.mli:

36a37
+   types_in_comments: bool;

And lib/parser_env.ml:

161a162
+   types_in_comments: bool;
170a172
+   types_in_comments = true;
229c231
-   let enable_types_in_comments = parse_options.types in
---
+   let enable_types_in_comments = parse_options.types && parse_options.types_in_comments in

Make sure it compiles and test passes:

$ make test
...
types_in_comments=false: OK
types_in_comments=true: OK

To publish the package, run:

$ npm publish

About

Flow parser with Fastpack-specific modifications

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.