Yusuke Tanaka
d5f3a749eb
refactor(cli/flags): change allow_read/write/net types from bool to 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-29 19:34:35 +01:00
Casper Beyer
3078fcf55a
feat(unstable): record raw coverage into a directory ( #8642 )
2020-12-21 14:04:25 +01:00
crowlKats
b2bda57073
fix(cli): show canary string in long version ( #8675 )
2020-12-14 13:55:07 +01:00
Bartek Iwańczuk
65e72b68ac
refactor(cli): decouple ops from ProgramState and Flags ( #8659 )
...
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-11 18:49:26 +01:00
crowlKats
71d468bec0
fix(cli): zsh completions ( #8718 )
2020-12-11 13:18:30 +01:00
Bartek Iwańczuk
5eedcb6b8d
chore(cli): unhide lsp command from CLI ( #8647 )
2020-12-07 23:27:43 +01:00
Kitson Kelly
301d3e4b68
feat: add mvp language server ( #8515 )
...
Resolves #8400
2020-12-07 21:46:39 +11:00
crowlKats
7135d34cca
refactor(cli): remove Option from Flags.v8_flags ( #8633 )
2020-12-06 18:19:21 +01:00
Nayeem Rahman
108972c966
chore(cli/flags): Use deno compile --output for the out file ( #8563 )
2020-12-01 15:11:02 +01:00
Luca Casonato
6aa692fece
feat: deno compile ( #8539 )
2020-11-30 20:35:12 +01:00
Kevin (Kun) "Kassimo" Qian
b6bfc32f8d
fix(cli): support passing cli arguments under deno eval
( #8547 )
...
Fixes #8538
2020-11-30 13:10:21 +11:00
crowlKats
973af61d8b
feat(cli/tools/upgrade): canary support ( #8476 )
2020-11-29 20:00:35 +01:00
Kitson Kelly
e2858d0bbb
chore: clippy future cleanups ( #8514 )
2020-11-28 06:47:35 +11:00
crowlKats
a08d2eee2b
add canary versioning ( #8480 )
2020-11-25 05:30:14 -05:00
Bartek Iwańczuk
230a11e8a4
Revert "docs(cli): Fix documentation about usage of deno completions … ( #8468 )
...
This reverts commit 17d4cd9213
.
2020-11-23 13:41:50 +01:00
Yusuke Tanaka
e3f73d3ec0
feat(unstable): Support --watch flag for bundle and fmt subcommands ( #8276 )
...
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-22 21:45:44 +01:00
Mayank Agarwal
17d4cd9213
docs(cli): Fix documentation about usage of deno completions script ( #8369 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-11-22 16:29:22 +01:00
Nayeem Rahman
7405356e23
chore(cli/flags): Rename --failfast to --fail-fast ( #8456 )
2020-11-22 15:40:33 +01:00
Nayeem Rahman
14877f7fe2
feat(unstable): Add deno test --no-run ( #8093 )
...
This commit adds new flag to "deno test" subcommand
called "--no-run" that allows to preload, cache an type
check.
2020-11-22 14:06:51 +01:00
Max Drosdo.www
686a17fc07
fix(cli): support "deno run --v8-flags=--help" without script ( #8110 )
2020-11-21 23:33:42 +01:00
KNnut
2c8439bc1e
refactor(cli+core): various cleanups in Rust ( #8336 )
2020-11-13 09:17:31 +11:00
Bartek Iwańczuk
6743383d2e
upgrade: deno_doc, deno_lint, dprint, swc ( #8292 )
2020-11-08 23:27:36 +01:00
Yoshiya Hinosawa
0e5c8c03ac
add commit hash and target to long_version output ( #8133 )
2020-11-02 12:40:33 -05:00
Bartek Iwańczuk
aebbdd5cc2
Revert "feat(lint): stabilize "deno lint" subcommand ( #8075 )" ( #8128 )
...
This reverts commit c5c48f845a
.
2020-10-26 13:36:13 +01:00
Ross Weir
ece1e1d5f1
feat(cli): pass script args for test command ( #8121 )
...
Closes #8096
2020-10-26 11:25:43 +11:00
Bartek Iwańczuk
9d36331278
Revert "feat(cli): Add deno cache --test and --worker ( #7920 )" ( #8089 )
...
This reverts commit be15cf285d
.
2020-10-23 16:56:25 +02:00
Nayeem Rahman
be15cf285d
feat(cli): Add deno cache --test and --worker ( #7920 )
2020-10-23 13:31:49 +02:00
Bartek Iwańczuk
c5c48f845a
feat(lint): stabilize "deno lint" subcommand ( #8075 )
...
This commit stabilizes "deno lint" by removing
the need to pass --unstable flag.
--unstable is still required when using --json flag.
2020-10-22 21:52:37 +02:00
Divy Srivastava
d592c128cf
chores(cli/fmt): make --ignore stable ( #7922 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-10-22 19:04:35 +02:00
Akshat Agarwal
d6c824a6c3
refactor(cli): use PathBuf instead of String for lint and fmt subcommands ( #8042 )
2020-10-21 13:12:01 +02:00
Nayeem Rahman
070d99645f
chore: Rename --importmap to --import-map ( #7032 )
...
--importmap still works as an alias to --import-map
but is not visible in CLI help output.
2020-10-20 14:30:59 +02:00
Kitson Kelly
57e95032c8
feat(cli): add support for bundle --no-check ( #8023 )
...
Fixes #6686
2020-10-20 14:10:42 +11:00
Nayeem Rahman
3f5513758d
feat(cli/installer): Add missing flags for deno install ( #7601 )
...
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-19 21:19:20 +02:00
Kitson Kelly
26639b3bac
chore(cli): remove dead code ( #7941 )
2020-10-12 22:25:25 +11:00
Valentin Anger
fede13f2eb
feat(cli): support importmap flag with deno doc subcommand ( #7821 )
...
Fixes #7783
2020-10-12 10:05:46 +11:00
Casper Beyer
4c779b5e8c
refactor(repl): use an inspector session ( #7763 )
...
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-10-02 01:14:55 +02:00
Casper Beyer
6587d1bce8
fix(cli/test): do not start inspector server when collecting coverage ( #7718 )
2020-09-28 12:22:29 +02:00
William Perron
42772845f6
fix(info): add --importmap flag ( #7424 )
2020-09-21 15:07:19 +02:00
Luca Casonato
dc6571909b
fix: make --watch and --inspect conflicting args ( #7610 )
2020-09-21 14:01:54 +02:00
Nayeem Rahman
0a9d7e4e39
fix(cli/installer): Don't reload by default ( #7596 )
2020-09-20 14:05:11 +02:00
Nayeem Rahman
51019dc267
fix(cli/flags): Make --unstable a global flag ( #7585 )
2020-09-20 13:45:00 +02:00
Nayeem Rahman
4fcfff0393
fix(bundle, eval, repl): Add missing flags ( #7414 )
...
Restructures flag helpers and applies them consistently.
2020-09-18 13:09:11 -04:00
Ryan Dahl
104aebdfb5
Re-export deno_core::url ( #7525 )
...
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-16 14:28:07 -04:00
Casper Beyer
755cfa98eb
feat(unstable): deno test --coverage ( #6901 )
...
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-13 15:01:30 +02:00
Luca Casonato
82d0f7ec84
chore: remove --no-check from deno info ( #7439 )
2020-09-12 23:34:54 +02:00
Bartek Iwańczuk
a3282aa9ed
feat(unstable): deno run --watch ( #7382 )
...
Co-authored-by: Sebastian Seedorf <mail@sebse.de>
2020-09-11 18:19:49 +02:00
Yusuke Tanaka
857f9b32e0
feat(fmt, lint): show number of checked files ( #7312 )
2020-09-09 16:45:31 +02:00
Bert Belder
c821e8f2f1
Move JSON ops to deno_core ( #7336 )
2020-09-06 02:34:02 +02:00
YellowBird
5db200b6ab
fix(docs): replace "eslint-ignore-" with "eslint-disable-" ( #7319 )
2020-09-02 12:03:35 +02:00
Yusuke Tanaka
fa65e49bc6
feat(lint): Add support for reading input from stdin ( #7263 )
2020-08-31 13:53:42 +02:00