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

Add --watch flag to deno check #9724

Open
Skillz4Killz opened this issue Mar 8, 2021 · 7 comments
Open

Add --watch flag to deno check #9724

Skillz4Killz opened this issue Mar 8, 2021 · 7 comments
Labels
--watch related to the watch feature of the CLI cli related to cli/ dir feat new feature (which has been agreed to/accepted)

Comments

@Skillz4Killz
Copy link

Skillz4Killz commented Mar 8, 2021

Hello 👋

I am hoping to request the ability to have something like tsc --watch. A method to be able to monitor all your files code to see if it would compile. Relying on an editor to tell you warnings only shows warnings in files you have open.

This is extremely useful in development and does not require having to continue deno run just to have it crash with errors so you can fix those and then run again just to crash again.

Use Case: Monitor that can easily show whether your code will or will not compile!

Thank you

@ahuggins-nhs
Copy link

#2401 (comment)

@ahuggins-nhs
Copy link

Even better: #7382

@lucacasonato lucacasonato added cli related to cli/ dir suggestion suggestions for new features (yet to be agreed) labels Mar 8, 2021
@lucacasonato
Copy link
Member

@Skillz4Killz I guess you want deno cache --watch?

@Skillz4Killz
Copy link
Author

@Skillz4Killz I guess you want deno cache --watch?

Yes, I think that would work. It was the first thing I tried but I think --watch doesn't work on cache. But as mentioned on Discord deno cache could be a confusing place for this. If you watch cache then you would be watching the downloaded files by Deno which are cached which as you can guess does not make any sense I do agree with them about this but I would take any solution for this because in my opinion this is a really neat feature when coding in TypeScript

@lucacasonato
Copy link
Member

Well cache does two things:

  1. Download and cache remote urls
  2. Transpile and optionally typecheck the given URLs

deno cache --watch would watch all local files in the given module graph, transpile and optionally typecheck them (2). It would not re-download & cache remote URLs.

@bartlomieju
Copy link
Member

@kitsonk would you be in favor of adding deno cache --watch?

@kitsonk
Copy link
Contributor

kitsonk commented Dec 1, 2021

I am indifferent. Clearly a low priority as it doesn't appear to have received any support from the community.

@lucacasonato lucacasonato changed the title [feat] TypeScript Compiler Monitor Add --watch flag to deno check Sep 16, 2024
@lucacasonato lucacasonato added feat new feature (which has been agreed to/accepted) --watch related to the watch feature of the CLI and removed suggestion suggestions for new features (yet to be agreed) labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--watch related to the watch feature of the CLI cli related to cli/ dir feat new feature (which has been agreed to/accepted)
Projects
None yet
Development

No branches or pull requests

5 participants