summaryrefslogtreecommitdiff
path: root/cli/tools
AgeCommit message (Collapse)Author
2021-05-18feat(lsp): support formatting json and markdown files (#10180)Satya Rohith
Resolves #9447 Resolves #9415
2021-05-17fix: static import permissions in dynamic importsLuca Casonato
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-05-11feat(test): add support for type checking documentation (#10521)Casper Beyer
This commit adds support for type checking codeblocks in the JS doc comments.
2021-05-10chore: upgrade crates (#10559)Bartek Iwańczuk
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-05-10fix(cli/installer): allow remote import maps (#10499)Satya Rohith
2021-05-02fix(test): change inflection depending on number of pending tests (#10466)Casper Beyer
2021-04-30fix(cli/tools/test): print module tests originate from (#10428)Casper Beyer
2021-04-29refactor(cli): move test reporting into trait (#10408)Casper Beyer
2021-04-28feat(test): run test modules in parallel (#9815)Casper Beyer
This commit adds support for running test in parallel. Entire test runner functionality has been rewritten from JavaScript to Rust and a set of ops was added to support reporting in Rust. A new "--jobs" flag was added to "deno test" that allows to configure how many threads will be used. When given no value it defaults to 2.
2021-04-26Remove denort optimization (#10350)Ryan Dahl
denort is an optimization to "deno compile" to produce slightly smaller output. It's a decent idea, but causes a lot of negative side-effects: - Deno's link time is a source of constant agony both locally and in CI, denort doubles link time. - The release process is a long and arduous undertaking with many manual steps. denort necessitates an additional manual zip + upload from M1 apple computers. - The "deno compile" interface is complicated with the "--lite" option. This is confusing for uses ("why wouldn't you want lite?"). The benefits of this feature do not outweigh the negatives. We must find a different approach to optimizing "deno compile" output.
2021-04-24feat(cli/upgrade): add download progress (#10343)crowlKats
2021-04-23fix(cli): standalone bin corruption on M1 (#10311)Aaron O'Mullan
2021-04-21fix: do not panic on not found cwd (#10238)Satya Rohith
2021-04-21fix(installer): Remove double '.' from temporary archive extension on ↵Nicholas Rodrigues Lordello
upgrade (#10289)
2021-04-18fix(install): use first `deno` executable on PATH rather than deno.exe (#10247)David Sherret
2021-04-12feat(runtime/permissions): prompt fallback (#9376)crowlKats
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-03-10fix(fmt): Correctly format hard breaks in markdown (#9742)David Sherret
2021-03-08fix(coverage): ensure single line functions don't yield false positives (#9717)Casper Beyer
2021-03-07fix(cli/compile): do not append .exe depending on target (#9668)Divy Srivastava
2021-03-02chore: upgrade crates (#9632)Bartek Iwańczuk
2021-03-01feat(cli): represent type dependencies in info (#9630)Kitson Kelly
Fixes #7927
2021-02-25feat(cli/doc): use type definitions "deno doc" if available (#8459)Liam Murphy
This commit adds support for type definitions in "deno doc"; with this change "deno doc" is able to leverage the same directives as TS compiler. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-24feat: add "deno coverage" subcommand (#8664)Casper Beyer
This commit adds a new subcommand called "coverage" which can generate code coverage reports to stdout in multiple formats from code coverage profiles collected to disk. Currently this supports outputting a pretty printed diff and the lcov format for interoperability with third-party services and tools. Code coverage is still collected via other subcommands that run and collect code coverage such as "deno test --coverage=<directory>" but that command no longer prints a pretty printed report at the end of a test run with coverage collection enabled. The restrictions on which files that can be reported on has also been relaxed and are fully controllable with the include and exclude regular expression flags on the coverage subcommand. Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-02-21fix(repl): filter out symbol candidates (#9555)Casper Beyer
2021-02-19fix: lint and fmt error if no target files are found (#9527)Yusuke Tanaka
2021-02-18feat: add json(c) support to deno fmt (#9292)Satya Rohith
This commit adds support for formatting JSON and JSONC in "deno fmt". New values "json" and "jsonc" are added to "--ext" flag for standard input processing.
2021-02-17Make ModuleSpecifier a type alias, not wrapper struct (#9531)Ryan Dahl
2021-02-08refactor(cli/tools/repl): merge highlighter into helper (#9448)Casper Beyer
2021-02-05fix(repl): prevent symbol completion panic (#9400)Casper Beyer
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-01-29fix(cli/coverage): display mapped instrumentation line counts (#9310)Casper Beyer
2021-01-28fix(coverage): use source maps when printing pretty reports (#9278)Casper Beyer
This commits makes use of source maps and the original source when printing lacking line coverage in the pretty printer. Only the executable lines are checked as before (as non-executable lines will always be ignored anyways). The lines then mapped to the appropriate source line when a source map is present.
2021-01-27chore: fix typo in lint.rs (#9281)Ikko Ashimine
2021-01-24fix(compile): fix panic when cross-compiling between windows and unix (#9203)Liam Murphy
2021-01-20fix(coverage): ignore comments (#8639)Casper Beyer
This commit fixes coverage collection by ignoring comments when tallying up line counts.
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: full commit hash in canary compile download (#9166)Luca Casonato
2021-01-19fix(installer): pass cached-only to executable_args (#9169)Freddy Fallon
2021-01-18fix(cli/install): escape % symbols in windows batch files (#9133)Liam Murphy
Fixes #9096.
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-13Remove unnecessary boxing of tokio::time::Sleep (#9105)Bert Belder
2021-01-12fix(installer): remove redundant clone (#9098)Bert Belder
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
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): report partial lines as uncovered (#9033)Casper Beyer