Small PoC to try out how does the openapi-typescript-codegen
package would work in conjunction with Parcel.
https://github.com/ferdikoomen/openapi-typescript-codegen/blob/master/docs/axios-support.md
- Parcel still needs to be configured to work with this library.
- It was necessary to install
@types/node
- It was necessary to move
form-data
as adependency
instead of adevDependency
. This is the contrary of what the official documentation ofopenapi-typescript-codegen
suggests here - it was necessary to create a
tsconfig.json
file to fix more Types issues when building the library
- It was necessary to install
- Parcel is a really cool option, it almost "just works" out of the box
- Maybe the combination of
Parcel
+openapi-typescript-codegen
doesn't work that well - it caches the build, so if I don't change anything the build is almost instant.
- Maybe the combination of
- We can the generate step using a npm script.
- How do I consume this library?
- Would this work if I list
form-data
andaxios
as peerDependencies?