summaryrefslogtreecommitdiff
path: root/cli/main.rs
AgeCommit message (Collapse)Author
2020-10-23feat(cli): Add deno cache --test and --worker (#7920)Nayeem Rahman
2020-10-23refactor(cli): move bundle check to new infrastructure (#8071)Kitson Kelly
2020-10-23refactor(cli): migrate run and cache to new infrastructure (#7996)Kitson Kelly
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-22feat(lint): stabilize "deno lint" subcommand (#8075)Bartek Iwańczuk
This commit stabilizes "deno lint" by removing the need to pass --unstable flag. --unstable is still required when using --json flag.
2020-10-21refactor(cli): use PathBuf instead of String for lint and fmt subcommands ↵Akshat Agarwal
(#8042)
2020-10-20feat(cli): add support for bundle --no-check (#8023)Kitson Kelly
Fixes #6686
2020-10-19fix(cli): Handling of relative importmaps while using watch (#7950)Absebo
2020-10-19feat(cli/installer): Add missing flags for deno install (#7601)Nayeem Rahman
This commit adds support for following flags: - deno install --importmap - deno install --no-remote - deno install --lock - deno install --lock-write - deno install --cached-only - deno install --v8-flags - deno install --seed
2020-10-14refactor(cli): add tsc2 (#7942)Kitson Kelly
Ref #7225
2020-10-13refactor(cli): rename GlobalState to ProgramState (#7914)Bartek Iwańczuk
2020-10-12chore(cli): remove dead code (#7941)Kitson Kelly
2020-10-12refactor(cli): move info subcommand over to new module graph (#7892)Kitson Kelly
2020-10-12feat(cli): support importmap flag with deno doc subcommand (#7821)Valentin Anger
Fixes #7783
2020-10-11reland JsRuntime/Worker is not a Future (#7924)Bartek Iwańczuk
2020-10-10Fix 100% CPU idling problem by reverting #7672 (#7911)Ryan Dahl
* Revert "refactor: Worker is not a Future (#7895)" This reverts commit f4357f0ff9d39411f22504fcc20db6bd5dec6ddb. * Revert "refactor(core): JsRuntime is not a Future (#7855)" This reverts commit d8879feb8c832dbb38649551b1cb0730874f7be6. * Revert "fix(core): module execution with top level await (#7672)" This reverts commit c7c767782538243ded64742dca9b34d6af74d62d.
2020-10-09refactor: Worker is not a Future (#7895)Bartek Iwańczuk
This commit rewrites deno::Worker to not implement Future trait. Instead there are two separate methods: - Worker::poll_event_loop() - does single tick of event loop - Worker::run_event_loop() - runs event loop to completion Additionally some cleanup to Worker's field visibility was done.
2020-10-07refactor(cli): remove TextDocument (#7850)Kitson Kelly
2020-10-07refactor(cli): cleanups to new module graph (#7846)Kitson Kelly
2020-10-06refactor(cli/repl): tightly integrate event loop (#7834)Casper Beyer
2020-10-03fix(cli/repl): put the thread to sleep when idle (#7804)Casper Beyer
2020-10-02refactor(repl): use an inspector session (#7763)Casper Beyer
This ports the REPL over to Rust and makes use of an inspector session to run a REPL on top of any isolate which lets make full use of rustylines various things like validators and completors without having to introduce a bunch of hard to test internal ops and glue code. An accidental but good side effect of this is that the multiple line input we previously had is now an editable multi-line input prompt that is correctly stored in the history as a single entry.
2020-09-28fix(cli/test): do not start inspector server when collecting coverage (#7718)Casper Beyer
2020-09-28refactor: move op state registration to workers (#7696)Bartek Iwańczuk
2020-09-27fix: Use $deno$test.ts instead of .deno.test.ts (#7717)Nayeem Rahman
2020-09-26refactor: combine MainWorker::new and MainWorker::create (#7693)Bartek Iwańczuk
* combine MainWorker::new and MainWorker::create * remove compiler_starts fields * make op_state types explicit for readability
2020-09-25refactor: new module graph used for no check (#7621)Kitson Kelly
2020-09-23fix(cli/coverage): print lines with no coverage to stdout (#7640)Casper Beyer
2020-09-23fix(watch): watch importmap file for changes (#7580)bartOssh
2020-09-22fix(logger): change log level to which prefix added (#7582)Yusuke Tanaka
2020-09-22refactor(cli/coverage): remove dependency on global state (#7616)Casper Beyer
This removes the dependency on global state and instead relies on the runtime's internal state to get the script sources it saw when it collected code coverage for them.
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-20fix(cli/installer): Don't reload by default (#7596)Nayeem Rahman
2020-09-20refactor: remove CliState, use OpState, add CliModuleLoader (#7588)Bartek Iwańczuk
- remove "CliState.workers" and "CliState.next_worker_id", instead store them on "OpState" using type aliases. - remove "CliState.global_timer" and "CliState.start_time", instead store them on "OpState" using type aliases. - remove "CliState.is_internal", instead pass it to Worker::new - move "CliState::permissions" to "OpState" - move "CliState::main_module" to "OpState" - move "CliState::global_state" to "OpState" - move "CliState::check_unstable()" to "GlobalState" - change "cli_state()" to "global_state()" - change "deno_core::ModuleLoader" trait to pass "OpState" to callbacks - rename "CliState" to "CliModuleLoader"
2020-09-18publish deno_fetch during CI (#7557)Ryan Dahl
2020-09-18refactor: deno_fetch op crate (#7524)Bartek Iwańczuk
2020-09-17fix: disable rustyline logs (#7535)Bartek Iwańczuk
2020-09-16Re-export deno_core::url (#7525)Ryan Dahl
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-16Remove unnecessary extern statementsRyan Dahl
2020-09-16Remove unnecessary serde_derive dependencyRyan Dahl
2020-09-16Revert "feat(install): bundle before installation" (#7522)Bert Belder
This reverts the changes introduced by PR #5276, which made `deno install «script»` automatically bundle the script's dependencies. It broke the `deno install` command for a large number of scripts. This reverts commit 34e98fa59cd70f7ce64e587bef41fac536a3076b. Closes: #7492
2020-09-16refactor(unstable): deno info --json output (#7417)bartOssh
Provide flat JSON structured output. Fix BrokenPipe error when piping out to "head".
2020-09-15cli/msg.rs -> cli/media_type.rsRyan Dahl
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-15chore: fix clippy warnings (#7476)Bert Belder
2020-09-14refactor: use ParsedModule and improve MediaTypes enum (#7456)Kitson Kelly
2020-09-13feat(unstable): deno test --coverage (#6901)Casper Beyer
This commit adds basic support for collecting coverage data using "deno test". Currently the report is only a text added to the end of output from "deno test".
2020-09-12refactor: Improve placeholder module names (#7430)Nayeem Rahman
2020-09-12Revert "feat(unstable): Support data: urls (#5157)" (#7432)Bartek Iwańczuk
This reverts commit e3319f34a6ece36eab3138eae83c8d0e18fcc07c.
2020-09-11feat(unstable): Support data: urls (#5157)Valentin Anger
2020-09-11feat(unstable): deno run --watch (#7382)Bartek Iwańczuk
Co-authored-by: Sebastian Seedorf <mail@sebse.de>