Ry Dahl
a4dde552de
Revert "feat(flags): script arguments come after '--'" ( #3681 )
...
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15
.
BREAKING CHANGE
2020-01-15 19:21:35 -05:00
uki00a
7ed018bb90
flag: upgrade std to v0.29.0 ( #3659 )
2020-01-12 06:02:03 -07:00
Ry Dahl
c50cab90a0
Remove xeval subcommand ( #3630 )
2020-01-08 17:40:59 -05:00
Ry Dahl
2d5457df15
feat(flags): script arguments come after '--' ( #3621 )
2020-01-08 14:59:53 -05:00
Ry Dahl
884462d615
Upgrade subcommands to 0.28.1 ( #3620 )
2020-01-08 01:05:52 +01:00
Ry Dahl
bfab4ed0df
Happy new year! ( #3578 )
2020-01-02 15:13:47 -05:00
EnokMan
d4f2fda623
fix typos ( #3573 )
2020-01-02 07:48:46 -05:00
Yoshiya Hinosawa
3115781e43
feat: show detailed version with --version ( #3507 )
2019-12-15 21:38:34 +08:00
Axetroy
8cf470474f
flag: upgrade std to v0.26.0 ( #3492 )
2019-12-14 10:00:29 +08:00
Ry Dahl
e6228bc3c4
Revert "Synchronize deno and deno_std versions" ( #3446 )
...
Preventing release v0.26.0
This reverts commit 81efa9d938
.
2019-12-05 21:14:46 -05:00
Andy Finch
7c3b9b4f4f
feat: first pass at native plugins ( #3372 )
2019-12-05 15:30:20 -05:00
Nayeem Rahman
91da410fc3
feat: Add --no-remote, rename --no-fetch to --cached-only ( #3417 )
2019-12-03 17:48:53 -05:00
Ry Dahl
ee013102ff
remove duplicated argv member from ThreadSafeGlobalState ( #3433 )
2019-12-03 17:23:10 -05:00
Axetroy
81efa9d938
synchronize deno and deno_std versions ( #3415 )
2019-11-29 19:03:55 -08:00
Kevin (Kun) "Kassimo" Qian
3451c5fb55
Tweaks to arg_hacks and add v8-flags to repl ( #3409 )
2019-11-26 20:25:14 -08:00
Ry Dahl
c016684653
refactor: reorganize flags ( #3389 )
...
- Remove ability to specify run arguments like `--allow-net` after the
script argument. It's too hacky to make work with clap.
- Remove `--v8-options`, instead use `--v8-flags=--help`
- Give more descriptive names to unit tests in flags.rs
- Assume argv and subcommand into DenoFlags struct so the output of
flags module is only DenoFlags rather than the tuple (subcommand, flags,
argv).
- Improve CLI help text
- Make `deno run` specific args like `--allow-net` only show up in 'deno
help run' instead of as global flags in `deno help`.
- Removes `deno version` to simplify our implementation and be closer to
clap defaults. `deno -V` now only shows Deno's version and not V8's nor
TypeScript. `Deno.versions` can be used to see that information.
- Prevent clap from auto-detecting terminal width and attempting to wrap
text.
2019-11-26 08:06:32 -08:00
罗文
542ec461c4
feat: add --check for deno fmt ( #3369 )
2019-11-18 13:19:59 -05:00
罗文
cb00fd6e98
fmt: respect prettierrc and prettierignore ( #3346 )
2019-11-16 11:48:45 -05:00
罗文
80b1371548
fmt: allow configuration of Prettier options ( #3314 )
2019-11-13 11:21:17 -05:00
Kitson Kelly
8d03397293
Make bundles fully standalone ( #3325 )
...
- Bundles are fully standalone. They now include the shared loader with
`deno_typescript`.
- Refactor of the loader in `deno_typescript` to perform module
instantiation in a more
- Change of behaviour when an output file is not specified on the CLI.
Previously a default name was determined and the bundle written to that
file, now the bundle will be sent to `stdout`.
- Refactors in the TypeScript compiler to be able to support the concept
of a request type. This provides a cleaner abstraction and makes it
easier to support things like single module transpiles to the userland.
- Remove a "dangerous" circular dependency between `os.ts` and `deno.ts`,
and define `pid` and `noColor` in a better way.
- Don't bind early to `console` in `repl.ts`.
- Add an integration test for generating a bundle.
2019-11-13 10:35:56 -05:00
罗文
7ba42ee4a6
flags: bump deno_std to v0.23.0 ( #3322 )
2019-11-12 08:34:09 -05:00
Ry Dahl
c04ff22afe
Remove tsconfig files - they are not part of build process ( #3262 )
2019-11-04 18:13:28 -05:00
Ry Dahl
86b3ac5108
feat: lockfiles ( #3231 )
...
Use --lock-write=lock.json or --lock-check=lock.json on the command
line.
2019-11-03 10:39:27 -05:00
Yoshiya Hinosawa
2804ba8674
remove --no-prompt flag, fail on missing permissions ( #3183 )
2019-10-22 19:35:43 -04:00
Yusuke Sakurai
f1fa3bd792
update: use v0.21.0 for subcommands ( #3168 )
2019-10-21 13:11:19 -04:00
Michał Sabiniarz
75ec9426f3
feat: --reload flag to take arg for partial reload ( #3109 )
...
Example: To reload only std modules --reload=https://deno.land/std/
2019-10-17 10:29:06 -04:00
Bartek Iwańczuk
b3331e81d9
support --allow-net=:4500 ( #3115 )
2019-10-12 14:13:52 -07:00
Ryan Dahl
4b7204babe
Update various links to deno_std ( #3096 )
2019-10-12 12:23:58 -07:00
Nayeem Rahman
eecb4fea26
Use xeval from deno_std ( #3058 )
2019-10-04 09:02:36 -04:00
Andy Hayden
f7bbd71e21
Update rust to 1.38.0 ( #3030 )
2019-10-03 09:16:06 -04:00
Bartek Iwańczuk
3a982a014b
bump deno_std deps ( #3034 )
2019-09-28 15:14:49 -04:00
Bartek Iwańczuk
112ce0df1f
test: add HTTP_PROXY tests ( #2977 )
2019-09-24 18:52:01 -04:00
Ryan Dahl
93d6faacf5
Keep all deno_std URLs in sync ( #2930 )
2019-09-12 12:56:53 -04:00
Bartek Iwańczuk
a8f44213ec
bump prettier revision ( #2928 )
2019-09-12 06:32:24 -04:00
Nayeem Rahman
0ce15f08c7
Remove DenoSubcommand::Install ( #2846 )
2019-09-01 14:20:23 -04:00
Bartek Iwańczuk
389763c04e
bump test runner revision ( #2800 )
2019-08-21 13:49:48 -04:00
Bartek Iwańczuk
1978358328
chore: bump test runner version ( #2784 )
2019-08-16 18:20:36 -04:00
Bartek Iwańczuk
d2d3afaf2d
add deno test subcommand ( #2783 )
2019-08-15 10:11:52 -04:00
Bartek Iwańczuk
9bd473d8ac
feat: print cache location when no arg in deno info ( #2752 )
2019-08-11 18:43:01 -06:00
Ryan Dahl
3971dcfe10
Use system rustfmt instead of fixed binary ( #2701 )
2019-07-31 17:11:37 -04:00
Bartek Iwańczuk
e7cee29c84
Add --current-thread flag ( #2702 )
2019-07-31 11:02:20 -04:00
Bartek Iwańczuk
729c4e9377
make importmap flag global ( #2687 )
2019-07-27 14:37:03 +00:00
Bartek Iwańczuk
89e6792203
cli: handle deno -v and deno --version ( #2684 )
2019-07-27 09:20:40 +00:00
Bartek Iwańczuk
3ae808986d
cli: unify deno -h options ( #2682 )
2019-07-26 07:36:56 +00:00
Bartek Iwańczuk
34f212f257
fix: bring back --no-fetch flag ( #2671 )
2019-07-20 09:19:06 -04:00
Bartek Iwańczuk
8214b686ce
Refactor DenoDir ( #2636 )
...
* rename `ModuleMetaData` to `SourceFile` and remove TS specific
functionality
* add `TsCompiler` struct encapsulating processing of TypeScript files
* move `SourceMapGetter` trait implementation to `//cli/compiler.rs`
* add low-level `DiskCache` API for general purpose caches and use it in
`DenoDir` and `TsCompiler` for filesystem access
* don't use hash-like filenames for compiled modules, instead use
metadata file for storing compilation hash
* add `SourceFileCache` for in-process caching of loaded files for fast
subsequent access
* define `SourceFileFetcher` trait encapsulating loading of local and
remote files and implement it for `DenoDir`
* define `use_cache` and `no_fetch` flags on `DenoDir` instead of using
in fetch methods
2019-07-17 18:15:30 -04:00
Bartek Iwańczuk
963d56fc5e
fix for '-' arg after script name ( #2631 )
2019-07-10 20:26:01 -04:00
Ryan Dahl
d7fa8c3207
Update deno.land links v0.11 ( #2628 )
2019-07-09 18:59:13 -04:00
Bert Belder
afd66bb010
cli: generate default file name for bundle when URL ends in a slash
2019-07-08 23:05:00 +02:00
Bert Belder
f4c9b31405
core: replace ModuleSpecifier::to_url() by as_url()
2019-07-08 23:04:07 +02:00
Bert Belder
9b1997b8b6
core: clearly define when module lookup is path-based vs URL-based
...
The rules are now as follows:
* In `import` statements, as mandated by the WHATWG specification,
the import specifier is always treated as a URL.
If it is a relative URL, it must start with either / or ./ or ../
* A script name passed to deno as a command line argument may be either
an absolute URL or a local path.
- If the name starts with a valid URI scheme followed by a colon, e.g.
'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a
URL (even if Deno doesn't support the indicated protocol).
- Otherwise, the script name is interpreted as a local path. The local
path may be relative, and operating system semantics determine how
it is resolved. Prefixing a relative path with ./ is not required.
2019-07-08 13:07:32 +02:00
Bartek Iwańczuk
5a4bebb770
fix: test output for completions ( #2597 )
2019-06-29 18:35:56 -04:00
Bartek Iwańczuk
38cf346d5c
feat: parse flags after script name ( #2596 )
2019-06-29 18:32:54 -04:00
Bartek Iwańczuk
6906a2f75e
feat: deno completions command ( #2577 )
2019-06-26 03:02:13 -07:00
Bartek Iwańczuk
70a9859adc
refactor: use Path/PathBuf in deno dir ( #2559 )
2019-06-24 10:10:21 -07:00
Bartek Iwańczuk
b9fbd55214
feat: log permission access ( #2518 )
...
Replaces -D/--log-debug flag with --log-level=debug
--log-level=info displays permission access
2019-06-22 09:02:51 -07:00
Bartek Iwańczuk
77a00aef4c
feat: upgrade installer and add docs ( #2551 )
2019-06-20 11:25:13 -07:00
Ryan Dahl
9142a7df46
Upgrade INSTALLER_URL to include fixes ( #2532 )
...
denoland/deno_std#492
2019-06-15 07:50:36 -07:00
Bartek Iwańczuk
061f6dd483
fix deno install ( #2529 )
2019-06-15 07:08:11 -07:00
Bartek Iwańczuk
3dff147d0c
feat: add deno install command ( #2522 )
2019-06-14 10:05:06 -07:00
Bartek Iwańczuk
bca5cc5041
Move ModuleSpecifier to //core ( #2509 )
2019-06-12 16:55:59 -07:00
Bartek Iwańczuk
b3c4307d02
Refactor module resolving ( #2493 )
...
Adds ModuleSpecifier, which wraps a URL. This is now passed around instead of
specifier and resolver strings.
2019-06-12 12:00:08 -07:00
Ryan Dahl
912e4f7177
feat: default output filename for deno bundle ( #2484 )
...
And improve bundle docs
2019-06-11 14:38:19 -04:00
Matt Harrison
d82c1991cf
Add --seed for setting RNG seed ( #2483 )
2019-06-11 10:34:39 -04:00
Neil Richter
163d60bf16
typo ( #2489 )
2019-06-10 09:20:19 -04:00
Bartek Iwańczuk
a115340288
feat: Import maps ( #2360 )
2019-06-09 09:08:20 -04:00
Kitson Kelly
307e092753
Add 'bundle' subcommand. ( #2467 )
2019-06-08 14:42:28 -04:00
Bartek Iwańczuk
6fa4d2e759
feat: bring back deno <script> ( #2451 )
2019-06-05 13:44:46 -04:00
Yoshiya Hinosawa
79f770b178
fmt: add --stdout option ( #2439 )
2019-06-01 08:54:32 -04:00
Axetroy
4c80394f54
bump std/prettier@0.5.0 to std/prettier@0.7.0 ( #2425 )
2019-05-30 08:35:42 -04:00
ztplz
86684799c4
typo ( #2366 )
2019-05-24 14:36:50 +03:00
Ryan Dahl
f92af3576a
Improve CLI help ( #2388 )
2019-05-23 21:57:44 +03:00
Ryan Dahl
2952fb5405
Rename --allow-high-precision to --allow-hrtime ( #2398 )
2019-05-23 19:28:29 +03:00
Bartek Iwańczuk
880265275f
Use tagged version of prettier in CLI ( #2387 )
2019-05-21 15:39:50 -04:00
Daiki Ihara
9c9c58c84d
Add permission whitelist docs ( #2365 )
2019-05-16 10:39:19 -04:00
Yoshiya Hinosawa
6a5893a269
fmt: use --write option of prettier/main.ts ( #2363 )
...
This is step 1 of the plan outlined here:
https://github.com/denoland/deno/issues/2090#issuecomment-492897028
2019-05-16 10:11:35 -04:00
Ryan Dahl
a00fa7056b
Fix command in docs ( #2353 )
2019-05-14 15:23:56 -04:00
Ryan Dahl
aba952397a
Add progress bar ( #2309 )
2019-05-11 10:23:19 -04:00
Kevin (Kun) "Kassimo" Qian
d9cdc6788b
fix: support relative path for whitelisting ( #2317 )
...
Using `std::fs::canonicalize` to expand path to full existing path, such that
later attempt to loop-pop and compare path segment would work.
2019-05-09 12:20:34 -04:00
andy finch
2edee3367d
First pass at permissions whitelist ( #2129 )
2019-05-08 19:20:30 -04:00
Bartek Iwańczuk
1f7ad17152
fix: Add all permissions to deno xeval ( #2290 )
2019-05-06 10:48:19 -04:00
Bartek Iwańczuk
f6a9d7d717
add "deno run" subcommand ( #2215 )
2019-05-03 17:15:16 -04:00
Kevin (Kun) "Kassimo" Qian
3608117132
feat(cli cmd): deno xeval ( #2260 )
2019-05-03 16:24:09 -04:00
Bartek Iwańczuk
459162fc6e
add --no-fetch CLI flag to prevent remote downloads ( #2213 )
2019-05-03 11:09:51 -04:00
Bartek Iwańczuk
bf9b0c8231
Fix: deno --v8-options does not print v8 options ( #2277 )
2019-05-03 08:59:52 -04:00
Kevin (Kun) "Kassimo" Qian
1dd30f658f
doc: add long about messages for subcommands ( #2264 )
...
Type deno <subcommand> -h to view descriptions.
2019-05-01 19:15:36 -04:00
Ryan Dahl
6c137342d7
flags: fix merge error ( #2244 )
2019-04-29 18:35:25 -07:00
Bartek Iwańczuk
636827a1d5
Rewrite flags.rs::parse_flags ( #2237 )
2019-04-29 16:43:06 -07:00
Kitson Kelly
1a0f53a807
Add support for custom tsconfig.json ( #2089 )
...
Use `--config`
2019-04-29 07:58:31 -07:00
Bartek Iwańczuk
02596c08bd
disable --version flag from deno version ( #2226 )
2019-04-27 11:19:50 -07:00
Bartek Iwańczuk
aa85a4d288
Rename CLI flags to subcommands ( #2212 )
2019-04-25 12:59:49 -06:00
Bartek Iwańczuk
b7d8a0c6f6
Rename deno prefetch to deno fetch ( #2210 )
2019-04-25 13:47:33 -04:00
Bartek Iwańczuk
cd19da62d9
Refactor CLI entry point ( #2157 )
...
Changes "deno --types" to "deno types"
and "deno --prefetch" to "deno prefetch"
2019-04-21 11:34:18 -04:00
Bert Belder
8477daa8b9
Fix clippy warnings
2019-04-17 15:35:46 +02:00
Bartek Iwańczuk
591b5e4a7d
Add deno eval subcommand ( #2102 )
2019-04-13 13:24:15 -04:00
Bartek Iwańczuk
1034d9723d
fix --v8-options ( #2093 )
2019-04-11 10:20:07 -04:00
Bert Belder
4ffe1612ff
Silence clippy warnings and format source code
2019-04-09 20:05:47 +02:00
Vincent LE GOFF
734cf781c6
Allow high precision performance.now() ( #1977 )
2019-04-08 16:22:40 -04:00
Bartek Iwańczuk
86aee7f137
Flags clean up: DenoFlags::from ( #2068 )
2019-04-07 14:58:16 -04:00
Bartek Iwańczuk
780e72ab6a
Refactor CLI flag parsing ( #2025 )
2019-04-07 01:13:06 +03:00
Ryan Dahl
e9910d8ae5
Rename crate deno_core to deno ( #2022 )
2019-03-30 19:30:40 -04:00
Ryan Dahl
c25e262b04
Merge the --recompile and --reload flags ( #2003 )
2019-03-28 16:05:41 -04:00
Ryan Dahl
fa3c35301a
Rename //src/ to //cli/ ( #1962 )
...
To better distinguish the deno_core crate from the executable deno,
which will now be called "the cli" internally.
2019-03-19 12:18:05 -04:00