summaryrefslogtreecommitdiff
path: root/cli/tools
AgeCommit message (Collapse)Author
2021-11-23fix(cli): config file should resolve paths relative to the config file (#12867)David Sherret
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-16refactor: re-export anyhow from deno_core (#12777)Ryan Dahl
2021-11-16fix(cli): short-circuit in prepare_module_load() (#12604)Nayeem Rahman
2021-11-15feat(unstable/test): include test step pass/fail/ignore counts in final ↵David Sherret
report (#12432)
2021-11-15fix(test): support typechecking docs with CRLF line endings (#12748)Geert-Jan Zwiers
2021-11-09fix(cli/upgrade): nice error when unzip is missing (#12693)Luca Casonato
Previously just a generic "error: No such file or directory (os error 2)" was printed. Now "`unzip` was not found on your PATH, please install `unzip`" will be printed.
2021-11-09feat(cli): support React 17 JSX transforms (#12631)Kitson Kelly
Closes #8440
2021-11-08fix(lint): use recommended tags when no tags specified in config, but ↵David Sherret
includes or excludes are (#12700)
2021-11-08refactor: move `mod tokio_util` to runtime (#12332)Bert Belder
This avoids a bunch of duplicated code.
2021-11-04fix(lint): use recommended tag if there is no tags in config file or flags ↵Zheyu Zhang
(#12644)
2021-11-01chore: upgrade deno_ast to 0.5.0 (#12595)David Sherret
2021-11-01chore(cli): fix typo in variable name (#12617)Dezső Mészáros
2021-10-30feat(test): better formatting for test elapsed time (#12610)Bartek Iwańczuk
This commit changes formatting of elapsed time in test runner output. Instead of "XXXms", reporter outputs one of: - "XXXms" for <1000ms - "XXs" for <60s - "XXXmYYs" for >=60s
2021-10-30fix(cli): linter/formater watches current directory without args (#12550)Zheyu Zhang
2021-10-30fix(cli): lint/format all discoverd files on each change (#12518)Zheyu Zhang
2021-10-21fix(lsp): formatting should error on certain additional swc diagnostics (#12491)David Sherret
2021-10-12chore: upgrade crates based on deno ast 0.3 (#12403)David Sherret
2021-10-12fix(lsp): lint diagnostics respect config file (#12338)Bartek Iwańczuk
This commit fixes problem with LSP where diagnostics coming from "deno lint" don't respect configuration file. LSP was changed to store "Option<ConfigFile>", "Option<LintConfig>" and "Option<FmtConfig>" on "Inner"; as well as storing "Option<LintConfig>" and "Option<FmtConfig>" on "StateSnapshot". Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-10-11feat(unstable/test): imperative test steps API (#12190)David Sherret
2021-10-11refactor: integrate deno_graph into CLI (#12369)Kitson Kelly
2021-10-06Revert "fix(cli): ensure empty lines don't count towards coverage (#11957)" ↵Bartek Iwańczuk
(#12348) This reverts commit d5b38a992933db5cb2d0221e9d82af191022dad5.
2021-10-06fix(cli): ensure empty lines don't count towards coverage (#11957)Casper Beyer
2021-10-05feat(lint): add support for --watch flag (#11983)CGQAQ
2021-10-05feat: add --compat flag to provide built-in Node modules (#12293)Bartek Iwańczuk
This commit adds "--compat" flag. When the flag is passed a set of mappings for built-in Node modules is injected into the import map. If user doesn't explicitly provide an import map (using "--import-map" flag) then a map is created on the fly. If there are already existing mappings in import map that would clash with built-in Node modules a set of diagnostics is printed to the terminal with suggestions how to proceed.
2021-09-30feat(cli/uninstall): add uninstall command (#12209)Sylvain Cau
2021-10-01fix(repl): avoid panic when assigned to globalThis (#12273)Yoshiya Hinosawa
2021-09-24refactor: Rename ProgramState to ProcState (#12204)Ryan Dahl
Move Arc into struct
2021-09-23feat(cli/fmt): support more markdown extensions (#12195)Satya Rohith
2021-09-18refactor(cli): don't generate a module for side loading tests (#12129)Casper Beyer
2021-09-18fix(core): prevent multiple main module loading (#12128)Bartek Iwańczuk
This commit fixes a problem where loading and executing multiple modules leads to all of the having "import.meta.main" set to true. Following Rust APIs were deprecated: - deno_core::JsRuntime::load_module - deno_runtime::Worker::execute_module - deno_runtime::WebWorker::execute_module Following Rust APIs were added: - deno_core::JsRuntime::load_main_module - deno_core::JsRuntime::load_side_module - deno_runtime::Worker::execute_main_module - deno_runtime::Worker::execute_side_module - deno_runtime::WebWorker::execute_main_module Trying to load multiple "main" modules into the runtime now results in an error. If user needs to load additional "non-main" modules they should use APIs for "side" module.
2021-09-13feat: add option flags to 'deno fmt' (#12060)Bartek Iwańczuk
2021-09-13feat(fmt): add support for configuration file (#11944)Bartek Iwańczuk
This commit adds support for configuration file for "deno fmt" subcommand. It is also respected by LSP when formatting files. Example configuration: { "fmt": { "files": { "include": ["src/"], "exclude": ["src/testdata/"] }, "options": { "useTabs": true, "lineWidth": 80, "indentWidth": 4, "singleQuote": true, "textWrap": "preserve" } } }
2021-09-13chore: update deno_* crates (#12020)Kitson Kelly
2021-09-11refactor: use import_map crate (#11974)Bartek Iwańczuk
Removes ImportMap implementation from "cli/" and instead uses "import_map" crate
2021-09-08fix(test): propagate join errors in deno test (#11953)David Sherret
2021-09-08refactor(lint): reuse lint rules (#11934)Bartek Iwańczuk
This commit updated "deno_lint" crate to 0.15.1 and refactors "cli/tools/lint.rs" to create only a single vector of lint rules, instead of creating a vector for each linted file.
2021-09-08fix(cli): better handling of source maps (#11954)Kitson Kelly
Ref: #11874
2021-09-07refactor(lsp): use deno_ast and cache swc ASTs (#11780)David Sherret
2021-09-05fix(doc): fix rustdoc bare_urls warning (#11921)Feng Yu
2021-09-04feat(cli): close test worker once all tests complete (#11727)Casper Beyer
2021-09-04refactor(testing): redirect console output via reporter (#11911)Casper Beyer
This feeds console output to the reporter and handles silencing there instead of in the JavaScript code.
2021-09-04refactor: factor out DenoSubcommand enum variant into structs (#11896)Bartek Iwańczuk
This commit refactors "DenoSubcommand" enum in a way that variants no longer contain anonymous structures but instead contain dedicated structures for each subcommand, eg. "DenoSubcommand::Lint" now contains "LintSubcommand".
2021-09-03feat(lint): add support for config file and CLI flags for rules (#11776)Bartek Iwańczuk
This commit adds support for following flags in deno lint subcommand: --config - allows to load configuration file and parses "lint" object --rules-tags=<tags> - allows specifying which set of tagged rules should be run --rules-include=<rules> - allow specifying which rules should be run --rules-exclude=<rules> - allow specifying which rules should not be run
2021-09-02chore: upgrade crates (#11894)Bartek Iwańczuk
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-09-01fix(cli): retain path based test mode inference (#11878)Casper Beyer
2021-08-26refactor(cli): introduce module specifier test modes (#11769)Casper Beyer
This commit merges the two vectors of specifiers into a single one introducing the concept of a "TestMode" which is a tri-state enum specifying how a specifier is to be tested (as documentation, as an executable module or as both). This is determined during the collection phase and determines how a specifier will be executed based on how the specifier was collected (directly or not) and if it has an eligible media_type when fetched. For example "deno test README.md" is marked as documentation because, while it is a direct inclusion it is not an executable media type therefore will only have the fenced code blocks that can be parsed from it tested.
2021-08-23refactor(cli/tools/test): infer disable log from program state (#11803)Casper Beyer
2021-08-23refactor(cli/flags): use an optional non zero usize for `fail-fast` (#11804)Casper Beyer
Changes the type of the `fail_fast` flag from `Option<usize>` to `Option<NonZeroUsize>` as an optional value of zero isn't sound.
2021-08-23fix(cli/flags): require a non zero usize for concurrent jobs (#11802)Casper Beyer
2021-08-17refactor(cli): pass optional op_init to create_main_worker (#11707)Casper Beyer
Replaces the testing flag in create_main_worker with a more general purpose hook to register additional ops.