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