FartLabs / fart

🌫 Program that generates type definitions in multiple languages.
https://fart.fart.tools
MIT License
1 stars 0 forks source link

Write multi-target import tests 🆒 #10

Open EthanThatOneKid opened 3 years ago

EthanThatOneKid commented 3 years ago

Tests need to be written to validate that generated modules are being properly imported by the target language's compiler for each target language available. Testing other language targets than TypeScript require prerequisite installations 🆗.

EthanThatOneKid commented 3 years ago

For now, Deno allowed for the importation of generated Fart files to be trivial and attainable at no cost. In order to spin up a Go-equivalent, we would need to spin up our own gomods/athens instance on Digital Ocean or something. For this reason, the Fart CLI can be used for non-TypeScript projects. This means that in order for Go to integrate with Fart, Fart's file generation must be integrated into that project's build process via the Fart CLI. The generated Fart files can be ignored by adding *.generated.go to the repo's .gitignore.