summaryrefslogtreecommitdiff
path: root/cli/file_watcher.rs
AgeCommit message (Collapse)Author
2022-11-28refactor: create util folder, move nap_sym to napi/sym, move http_cache to ↵David Sherret
cache folder (#16857)
2022-09-16upgrade deps (#15914)Ryan Dahl
2022-09-02refactor: move JsError formatting to deno_runtime (#15345)Christian Dürr
This takes the existing `fmt_error` module from cli and puts it as a public module into `deno_runtime`.
2022-08-10fix(permissions): ignore empty values (#15447)Leo Kettmeir
2022-07-15refactor: remove redundant qualification of symbols in Rust (#15201)orvit
2022-07-13fix(cli): Improve error message in watch mode (#15184)2shiori17
2022-06-08fix: watch dynamic imports in --watch (#14775)Bartek Iwańczuk
Fix dynamic imports being watched in the watcher when using `--watch`.
2022-04-21fix(watcher): don't clear screen on start (#14351)Bartek Iwańczuk
2022-04-19fix: `--watch` was losing items (#14317)David Sherret
2022-01-31feat(cli): add "--no-clear-screen" flag (#13454)Zheyu Zhang
This commit adds "--no-clear-screen" flag which can be used with "--watch" flag to disable clearing of terminal screen on each file change.
2022-01-15chore: upgrade to rust 1.58 (#13377)David Sherret
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2021-12-11feat(watcher): clear screen on each restart (#12613)Bartek Iwańczuk
This commit adds automatic clearing of terminal screen after restarting execution on file change.
2021-12-09fix(watch): mitigate race condition between file write by other process and ↵David Sherret
watch read (#13038)
2021-11-01fix(fmt/lint): strip unc paths on Windows when displaying file paths in lint ↵David Sherret
and fmt (#12606)
2021-09-02chore: update dependencies (#11856)Luca Casonato
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-07-06chore: use parking_lot for synchronization primitives to align with tokio ↵David Sherret
(#11289) parking_lot is already transitively used in tokio via the "full" cargo feature
2021-05-10feat: add deno test --watch (#9160)Liam Murphy
This commit implements file watching for deno test. When a file is changed, only the test modules which use it as a dependency are rerun. This is accomplished by reworking the file watching infrastructure to pass the paths which have changed to the resolver, and then constructing a module graph for each test module to check if it contains any changed files.
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-01-13Fix race condition in file watcher (#9105)Bert Belder
2021-01-13Remove unnecessary boxing of tokio::time::Sleep (#9105)Bert Belder
2021-01-11fix(watcher): keep working even when imported file has invalid syntax (#9091)Yusuke Tanaka
2021-01-11upgrade: tokio 1.0 (#8779)Bartek Iwańczuk
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2020-12-13refactor: deno_runtime crate (#8640)Bartek Iwańczuk
This commit moves Deno JS runtime, ops, permissions and inspector implementation to new "deno_runtime" crate located in "runtime/" directory. Details in "runtime/README.md". Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-11-28fix(watcher): watcher doesn't exit when module resolution fails (#8521)Yusuke Tanaka
This commit makes the file watcher continue to work even if module resolution fails at the initial attempt, allowing us to execute `run` or `bundle` subcommand when a script has invalid syntax. In such cases, the watcher observes a single file that is specified as an command line argument.
2020-11-22feat(unstable): Support --watch flag for bundle and fmt subcommands (#8276)Yusuke Tanaka
This commit adds support for "--watch" flag for "bundle" and "fmt" subcommands. In addition to this, it refactors "run --watch" command so that module resolution will occur every time the file watcher detects file addition/deletion, which allows the watcher to observe a file that is newly added to the dependency as well.
2020-10-28refactor(watch): create single watcher for whole process (#8083)Yusuke Tanaka
This commit rewrites file watcher used with --watch flag. Instead of creating new watcher after each restart, only a single watcher is created for whole process. Additionally debouncing mechanism has been added to prevent infinite restart loops if multiple files were changed in quick succession. Co-authored-by: bartossh <lenart.consulting@gmail.com>
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-11feat(unstable): deno run --watch (#7382)Bartek Iwańczuk
Co-authored-by: Sebastian Seedorf <mail@sebse.de>