Bert Belder
f4c9b31405
core: replace ModuleSpecifier::to_url() by as_url()
2019-07-08 23:04:07 +02:00
Bartek Iwańczuk
72d9045528
cli: refactor deno_dir to use Url instead of String
2019-07-08 13:07:32 +02:00
Ryan Dahl
3a4d88475b
Port code from Cargo and use for progress
...
A lot of its functionality is unused still, but the goal it to slowly
migrate logging functionality to it. There is also a useful progress bar
which can be ported over later - it depends on this module.
4c1fa54d10/src/cargo/util/progress.rs
2019-06-25 06:32:28 -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
3c81cca037
fix: prevent multiple downloads of modules ( #2477 )
2019-06-24 09:04:06 -07:00
Kitson Kelly
425df50484
Combine CLI Errors ( #2487 )
2019-06-19 19:07:01 -07: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
Kevin (Kun) "Kassimo" Qian
401a5c0211
feat: support .mjs extension resolution ( #2283 )
...
Removed `extmap` and added .mjs entry in `map_file_extension`.
The assert in the compiler does not need to be updated, since it is
resolving from the compiled cache instead of elsewhere (notice the .map
is asserted next to it)
2019-05-03 15:03:10 -04:00
Bartek Iwańczuk
459162fc6e
add --no-fetch CLI flag to prevent remote downloads ( #2213 )
2019-05-03 11:09:51 -04:00
Kitson Kelly
1a0f53a807
Add support for custom tsconfig.json ( #2089 )
...
Use `--config`
2019-04-29 07:58:31 -07:00
Bert Belder
8477daa8b9
Fix clippy warnings
2019-04-17 15:35:46 +02:00
Yoshiya Hinosawa
635ad2a18e
fix absolute path resolution from remote ( #2109 )
2019-04-13 13:27:27 -04:00
Bert Belder
4ffe1612ff
Silence clippy warnings and format source code
2019-04-09 20:05:47 +02:00
Kevin (Kun) "Kassimo" Qian
534b8d3021
Follow redirect location as new referrers for nested module imports ( #2031 )
...
Fixes #1742
Fixes #2021
2019-04-01 21:46:40 -04:00
Ryan Dahl
c25e262b04
Merge the --recompile and --reload flags ( #2003 )
2019-03-28 16:05:41 -04:00
Bert Belder
da1b98b690
Clippy fixes ( #2009 )
2019-03-28 08:09:19 -04:00
Ryan Dahl
94405bb617
Fix clippy errors and upgrade Rust to 1.33.0 in CI ( #1945 )
2019-03-20 18:55:52 -04:00
Ryan Dahl
4c831f1eb5
Add more async module loading function ( #1974 )
...
* get_source_code_async
* fetch_module_meta_data_async
* fetch_module_meta_data_and_maybe_compile_async
2019-03-20 11:38:43 -04:00
Ryan Dahl
fb2c0c29ec
Add fetch_remote_source_async ( #1972 )
2019-03-19 16:45:39 -04:00
Ryan Dahl
5e4312de4d
Move fetch_remote_source, fetch_local_source
...
They do not depend on DenoDir, so should not be methods of it.
2019-03-19 14:50: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