Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write multi-target import tests 🆒 #10

Open
4 tasks
EthanThatOneKid opened this issue Aug 31, 2021 · 1 comment
Open
4 tasks

Write multi-target import tests 🆒 #10

EthanThatOneKid opened this issue Aug 31, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request testing This doesn't seem right
Milestone

Comments

@EthanThatOneKid
Copy link
Collaborator

EthanThatOneKid commented Aug 31, 2021

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 🆗.

  • Go: Review the process that the go get subcommand undergoes in order to properly import a dependency to a Go project. Make sure that this process is compatible with the Fart server (GET /go/path/to/mod). See Self-hosted ‘go get’-able repos HOWTO.
  • TypeScript: Verify that the generated types are imported accurately by Deno (on GET /ts/path/to/type.ts) and Node (on GET /node/path/to/type).
  • C++: The easiest thing to do is merely generate static header files and import them into a C++ file that way.
  • QB64: Research how libraries and structs are defined in QB64 and how each source file is taken into account by the QB64 compiler. Make sure the generated types are compatible with QB64 compilation.
@EthanThatOneKid EthanThatOneKid added enhancement New feature or request testing This doesn't seem right labels Aug 31, 2021
@EthanThatOneKid EthanThatOneKid added this to the v1.0 milestone Aug 31, 2021
@EthanThatOneKid EthanThatOneKid self-assigned this Aug 31, 2021
@EthanThatOneKid EthanThatOneKid changed the title Write Go import tests 🆗 Write multi-target import tests 🆗 Aug 31, 2021
@EthanThatOneKid EthanThatOneKid changed the title Write multi-target import tests 🆗 Write multi-target import tests 🆒 Sep 1, 2021
@EthanThatOneKid
Copy link
Collaborator Author

EthanThatOneKid commented Oct 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant