genType icon indicating copy to clipboard operation
genType copied to clipboard

Move genType inside the compiler, and trade-offs.

Open cristianoc opened this issue 2 years ago • 1 comments

Moving the project inside the compiler can enable deeper integration and solve a number of longstanding issues caused by treating compilation as a black box and genType as a post-processing. Also, it means staying in sync with the compiler version automatically.

This also means making it as lean as possible, and reduce tests to the essential (to run alongside compiler tests). To do that, the flow and uptyped backends will be removed, and anything not necessary to the integration as well.

To avoid disrupting existing users, this repository can stay unchanged, so it's still possible to apply fixes if necessary. The catch is, for people still using standalone genType it will not be possible to do a compiler upgrade in future, as new compiler versions will have genType built in.

cristianoc avatar Jul 02 '22 06:07 cristianoc

  • [x] remove flow and untype back-ends
  • [x] remove Js.t support
  • [x] importPath: only keep Relative
  • [x] remove reasonReactPath
  • [x] remove bsCurryPath config
  • [x] remove propTypes
  • [x] remove fileHeader config
  • [ ] see what to do with exportInterfaces, either remove, or leave and make it better later

cristianoc avatar Jul 06 '22 03:07 cristianoc