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

Support typescript config modules #8

Open
mearns opened this issue Sep 1, 2020 · 0 comments
Open

Support typescript config modules #8

mearns opened this issue Sep 1, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mearns
Copy link
Owner

mearns commented Sep 1, 2020

As a user
I want to be able to write my config module in typescript
so that I can benefit from the type-checking and the published sirocco config type definitions.

Acceptance Criteria

  • Sirocco can load config from a file named .sirocco.ts, parsed as typescript including any other imported modules and using tsconfig.json if present.

References

The virtual-tsc project might be what we're looking for, but I'm not sure.

You might also start here: Using the Compiler API. There's also a lot of details here including what looks to be a CompilerHost implementation, which is the thing that gets files off the "filesystem", so that might be useful for keeping everything in memory if necessary.

@mearns mearns added enhancement New feature or request help wanted Extra attention is needed labels Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant