summaryrefslogtreecommitdiff
path: root/cli/main.rs
AgeCommit message (Collapse)Author
2021-02-17Make ModuleSpecifier a type alias, not wrapper struct (#9531)Ryan Dahl
2021-02-17feat: support loading import map from URL (#9519)Bartek Iwańczuk
This commit adds support for loading import maps from URLs, both remote and local. This feature is supported in CLI flag as well as in runtime compiler API.
2021-02-16feat(cli): support auth tokens for accessing private modules (#9508)Kitson Kelly
Closes #5239
2021-01-19feat: add markdown support to deno fmt (#8887)Satya Rohith
This commit adds support for formatting markdown files with "deno fmt". Additionally "--ext={js|jsx|ts|tsx|md}" flag was added to "deno fmt" that allows to specify file type when providing contents over stdio.
2021-01-19fix: panic during `deno compile` with no args (#9167)Luca Casonato
2021-01-19feat: Standalone lite binaries and cross compilation (#9141)Bartek Iwańczuk
This commit adds --target and --lite flags to deno compile subcommand. --target allows to cross-compile binary to different target architectures by fetching appropriate binary from remote server on first run. All downloaded binaries are stored in "$DENO_DIR/dl". --lite allows to use lite version of the runtime (ie. the one that doesn't contain built-in tooling like formatter or linter).
2021-01-19fix(cli): print a newline after help and version (#9158)Casper Beyer
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-09fix: don't error on version and help flag (#9064)Luca Casonato
2021-01-08feat: denort binary (#9041)Luca Casonato
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-07feat: add --location=<href> and globalThis.location (#7369)Nayeem Rahman
2021-01-07fix(coverage): do not store source inline in raw reports (#9025)Casper Beyer
When we were doing single process in-memory reports getting the source from the runtime was practical, but now that we're writing to disk this conflicts with the format tools taking raw v8 coverage dumps expect.
2021-01-06feat: Add configurable permissions for Workers (#8215)Steven Guerrero
This commit adds new option to "Worker" Web API that allows to configure permissions. New "Worker.deno.permissions" option can be used to define limited permissions to the worker thread by either: - inherit set of parent thread permissions - use limited subset of parent thread permissions - revoke all permissions (full sandbox) In order to achieve this functionality "CliModuleLoader" was modified to accept "initial permissions", which are used for top module loading (ie. uses parent thread permission set to load top level module of a worker).
2021-01-06refactor: move WebSocket API to an op_crate (#9026)Luca Casonato
2021-01-06refactor(cli): remove 'js' module, simplify compiler snapshot (#9020)Bartek Iwańczuk
This commit removes "js" module from "cli". It contained stuff related to TypeScript compiler (snapshot, declaration files) and thus it was moved to "tsc" module.
2021-01-05feat(cli/standalone): support runtime flags for deno compile (#8738)Nayeem Rahman
2020-12-30feat(lsp): add cache command (#8911)Kitson Kelly
2020-12-29refactor(cli/flags): change allow_read/write/net types from bool to ↵Yusuke Tanaka
Option<Vec<T>> (#8896) This PR refactors "cli/flags.rs" and "runtime/permissions.rs" so that "allow_read", "allow_write" and "allow_net" themselves have allowlists, instead of storing them in additional fields.
2020-12-28feat(unstable): collect coverage from the run command (#8893)Casper Beyer
This adds implicit coverage collection to the run command when a coverage collection directory is set (via an environment variable).
2020-12-21refactor: rewrite lsp to be async (#8727)Luca Casonato
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-12-21feat(unstable): record raw coverage into a directory (#8642)Casper Beyer
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-12-12refactor(cli): more options on Worker (#8724)Bartek Iwańczuk
2020-12-11refactor(cli): decouple ops from ProgramState and Flags (#8659)Bartek Iwańczuk
This commit does major refactor of "Worker" and "WebWorker", in order to decouple them from "ProgramState" and "Flags". The main points of interest are "create_main_worker()" and "create_web_worker_callback()" functions which are responsible for creating "Worker" and "WebWorker" in CLI context. As a result it is now possible to factor out common "runtime" functionality into a separate crate.
2020-12-07feat: add mvp language server (#8515)Kitson Kelly
Resolves #8400
2020-12-06refactor(cli): remove Option from Flags.v8_flags (#8633)crowlKats
2020-12-01chore(cli/flags): Use deno compile --output for the out file (#8563)Nayeem Rahman
2020-11-30feat: deno compile (#8539)Luca Casonato
2020-11-29feat(cli/tools/upgrade): canary support (#8476)crowlKats
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-26refactor(cli): reorganize main.rs and split workers (#8495)Bartek Iwańczuk
Factored out "init_v8_flags", "init_logger" and "get_subcommand" from "main" function. Also "Worker" was removed in favor of moving logic to "MainWorker" and "WebWorker" respectively.
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-11-22feat(unstable): Add deno test --no-run (#8093)Nayeem Rahman
This commit adds new flag to "deno test" subcommand called "--no-run" that allows to preload, cache an type check.
2020-11-19refactor(cli): move tooling to cli/tools/ (#8424)Bartek Iwańczuk
This commit moves following tools into a single "tools" module located at "cli/tools/mod.rs": - formatter - linter - test runner - coverage collector - installer - binary upgrader - repl
2020-11-16refactor(cli): rename fs module to fs_util (#8380)Bartek Iwańczuk
This commit renames "fs" module in "cli/" to "fs_util". This is purely cosmetic change; there were a few places which aliased "crate::fs" to "deno_fs" which was very confusing with "fs" module in ops.
2020-11-14feat(lint): support --rules --json (#8384)Bartek Iwańczuk
This commit adds support for "--json" flag in combination with "--rules". List of rules is serialized to JSON and printed.
2020-11-13refactor(cli): minor cleanup of main.rs (#8362)Max Drosdo.www
2020-11-09refactor(cli): remove unnecessary format! calls (#8315)KNnut
2020-11-08chore: remove dead code (#8298)Bartek Iwańczuk
2020-11-06refactor(cli): refactor file_fetcher (#8245)Kitson Kelly
2020-11-02refactor(cli): remove ProgramState::permissions (#8228)Bartek Iwańczuk
This commit removes ProgramState::permissions field. Having permissions parsed from CLI flags stored on globally accessible state object made it easy to mistakenly use these permissions in situations which required "runtime" permissions.
2020-11-03refactor(cli): cleanup compiler snapshot and tsc/module_graph (#8220)Kitson Kelly
2020-11-02refactor(cli): migrate runtime compile/bundle to new infrastructure (#8192)Kitson Kelly
Fixes #8060
2020-10-29refactor: don't spin up V8 for `deno cache` (#8186)Luca Casonato
2020-10-28fix(cli): restore tripleslash lib refs support (#8157)Kitson Kelly
Fixes #8147
2020-10-26fix: Use -rw-r--r-- for cache files (#8132)Ryan Dahl
2020-10-26Revert "feat(lint): stabilize "deno lint" subcommand (#8075)" (#8128)Bartek Iwańczuk
This reverts commit c5c48f845a4d25f064c4388fcdd4295317edf155.
2020-10-25refactor(run): use new module graph for run --watch (#8085)Bartek Iwańczuk
This commit changes how "deno run --watch" is implemented by migrating to use ModuleGraph2.
2020-10-23refactor: use of lock file in ModuleGraph2 (#8087)Bartek Iwańczuk
2020-10-23Revert "feat(cli): Add deno cache --test and --worker (#7920)" (#8089)Bartek Iwańczuk
This reverts commit be15cf285dbf3a7b3025d34cb80e87e54a55dd93.