-
Notifications
You must be signed in to change notification settings - Fork 33
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
CLI for type checking #61
Comments
Agreed. I was imagining a Perhaps it should be a second |
That may not be a great idea. Ideally we'd non-interactively do what the lsp client already does so that any errors etc. have correct source line numbers. @STRd6 Are you open to bin/civettsc (or maybe just civetc) ? I think keeping this outside may be a maintenance burden because I think tsserver integration is still early and keeping the two in sync may need more work. |
I agree that this should be part of this repo (but maybe separate NPM package), and wyen I said "run TypeScript" I meant the same thing as the LSP (not running tsc). |
Having an additional |
Ok cool. Looks like everyone is on the same page then. I can take this up mid next week. |
Feel free to refactor out the TSServer wrapping from lsp into a shared lib if it makes things easier. |
An update on this: if you use Vite, Rollup, ESBuild, or Webpack to build your Civet code, our new unplugin for these systems now has a |
We should try to extract the |
Surely the bin should be called |
I guess it's a tradeoff on whether to have just one |
Vue has a cli utility called vue-tsc, which can be used for type-checking in CI env etc. It would be good to have something similar for civet.
The text was updated successfully, but these errors were encountered: